I have a website where my home page used to be mysite.com/index.htm. It has many links pointing to it. Now I have created mysite.com/index.php which is to be the new home page. What happens now? I will be getting some visitors to htm and some to php but the php page is my target page. What do I do? Thanks, Jon
copy & paste below as the content of your index.htm every time someone open index.htm, they will be redirected to index.php
Create .htaccess file and try this is. RewriteEngine on RewriteCond %{HTTP_HOST} ^mysite.com/index\.html$ [NC] RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=301,L]
I would use this .htaccess: RewriteEngine on RewriteRule ^(.*)\.html$ http://www.your_domain.com$1.php [L,R=301] Code (markup): This will redirect any hit on /something.html to /something.php. Jean-Luc
Try this: RewriteEngine on RewriteRule ^(index)\.htm$ http://www.your_domain.com/$1.php [L,R=301] Code (markup): or better: RedirectPermanent /index.htm http://www.your_domain.com/index.php Code (markup): Jean-Luc