joined:Sept 24, 2002
This is probably too simple, but after reading more articles on the web about this I've become confused and concerned that I might inadvertently screw everything up by improperly doing a 301 permanent re-direct for my home page.
Currently, my home page is a .htm file. Virtually all links lead to the main domain (aka...www.mydomain.com). But some links - both internal and external - link to the full path (aka...www.mydomain.com/index.htm).
So to avoid a bunch of 404's, I need to use a 301 redirect so that anything that leads to www.mydomain.com/index.htm will go to either www.mydomain.com or www.mydomain.com/index.php
For other 301 redirects, I've always just used code in the .htaccess file identical to this:
Redirect permanent /folder-name/file.htm http://www.mydomain.com/folder-name/new-file-name.php
After researching this issue online, I've gotten the feeling that using this simple code might not work when doing it on the home page.
So, I'm asking the experts here. What is the proper way to redirect the home page to go from a index.htm to a index.php.