Redirect index.html to index.php with 301 redirect in .htaccess
Posted on 2007-04-10
I have a 301 redirect for my old index page to the new php one like this:
redirect 301 /index.html http://www.mydomain.com/index.php
What I don't like is that when someone goes to http://www.mydomain.com, it appends the index.php to the end of it where it didn't use to before. Does anyone know how to setup the redirect so that when someone goes to http://www.mydomain.com, all they see in the address bar is http://www.mydomain.com instead of http://www.mydomain.com/index.php? Thanks.