htaccess file help
Project ID: 1265730491
Project Details
- Status: Closed (Chosen Programmer: frankzuna; Paid; Rated 10 out of 10)
- Posted: 2/9/2010 at 10:48 EST
- Closed: 2/10/2010 at 11:16 EST
- Project Creator:
- Budget: $15
- Description: I am running a Wordpress site that was converted over from a static html site. I have an htaccess file in place to 1) rewrite posts (per Wordpress), 2) redirect old pages to new pages.
My problem is that everything works fine except for simply redirecting www.example.com/index.html to www.example.com/
Here is what my htaccess file looks like:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
#
RewriteRule ^index\.html$ http://www.example.com/ [R,L] - This is the one that does not work
RewriteRule ^aboutus\.html$ http://www.example.com/about-my-company/ [R,L]
RewriteRule ^testimonials\.html$ http://www.example.com/ [R,L]
RewriteRule ^portfolio\.html$ http://www.example.com/company-portfolio/ [R,L]
RewriteRule ^services\.html$ http://www.example.com/what-we-offer/ [R,L]
RewriteRule ^contact\.html$ http://www.example.com/contact-us/ [R,L]
The entire thing can be rewritten. Here are my goals:
1) Wordpress functionality for SEO links (which works now)
2) Pages that are old (like contact.html) are still in the search engine results. I want those redirected (or rewritten?) to the new url path. Those html files should not have to actually exist on the server.
3) definitely need http://www.example.com/index.html to redirect to http://www.example.com - Tags:
| Project Bids |
| Programmer | Bid |
Delivery Time | Time of Bid | Rating | |
| bhupal123 |
$15 | Immediately | 2/9/2010 at 10:53 EST | (511 reviews) |
|
| can do it | |||||
| rajeshsoni |
$15 | Immediately | 2/9/2010 at 14:13 EST | (499 reviews) |
|
| Quick and Easy. Let's get it done, Now! Thanks. | |||||
| frankzuna |
$15 | Immediately | 2/9/2010 at 10:54 EST | (150 reviews) |
|
| I can fix it right now. | |||||
| wrdesign | $15 | Immediately | 2/9/2010 at 10:53 EST | (9 reviews) |
|
| will be done ... ;) | |||||
| creativity |
$20 | 1 day | 2/9/2010 at 11:11 EST | (171 reviews) |
|
| Hi, We are proficient in this type of job. Plz, check PMB to see example sites. Thanks | |||||






