Old 03-12-2007, 15:16   #1 (permalink)
TriMuscle
Registered User
 
Join Date: Jul 2007
Posts: 32
How do I do a 301 redirect?

I used to have my homepage as index.html, not it's index.php. Since I have many internal and external links pointing to the html version, I need to do a 301 redirect. It's not working. Here is what I have in my .htaccess file:

redirect 301 mysite.com/index.html http://www.mysite.com/index.php

so they way I understand it, everytime it tried to find the index.html it should direct to the new php page.

Any reason why this isn't working?
  Reply With Quote
Old 03-12-2007, 15:27   #2 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
Try...

redirect 301 /index.html http://www.mysite.com/index.php
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8