![]() |
Best way to go from index.html to index.php?
I have had a domain.com for a long time with simply an index.html as the root page (domain.com/index.html) and I need to put up a domain.com/index.php page instead.
There are many sites linking to the index.html...what would be the best way to send everything to index.php instead? 301 redirect to maintain SE integrity? This is what i was thinking: http://www.domain.com/index.html would be a 301 redirect to index.php so http://www.domain.com/ would basically go to index.html which would redirect to index.php Is this ok or is there a better idea? |
are they actually linking to index.html?
edit: or just domain.com/ |
Just replace index.html w/ index.php and add this to .htaccess
RewriteBase / RewriteRule ^index\.html$ index.php |
that is the way I would do it, just a quick redirect to the php
|
Quote:
|
Quote:
Or you could use a 301 redirect: Code:
redirect 301 /index.html http[colon]//www[dot]domain[dot]com/index.php |
Great, I'll do the htaccess...thanks guys!
|
modRewrite fo sure! :thumbsup
|
| All times are GMT -7. The time now is 02:46 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123