Forum Moderators: phranque

Message Too Old, No Replies

permanent 301 redirect index.html to index.htm

is that a problem?

         

Craig_F

7:30 pm on Jul 1, 2003 (gmt 0)

10+ Year Member



I just downloaded the htaccess file for a site I'm working on and they have a permanent 301 redirect index.html to index.htm. When using he server header check on just the domain it is shown as permanetly moved. Should I remove the redirect, if so what about links pointing to the old "index.html" file?

sullen

7:36 pm on Jul 1, 2003 (gmt 0)

10+ Year Member



In principle there's nothing wrong with this, although it would seem a little odd. I have recently had to put a redirect from index.htm to default.htm and had no problems, except that it seems that Google's freshbot appears to have problems in finding the new page (deepbot manages fine).

But surely a better solution would be to set .htm pages as the default rather than .html (sorry, I'm a Windows-ite, don't know if/how you can do this in Apache.)

jdMorgan

4:29 am on Jul 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Craig_F,

The Apache directive DirectoryIndex in mod_dir [httpd.apache.org] will do this for you.

Just set it up to serve index.htm whenever yourdomain.com/ is requested. Then, always link to just "/" within your site, and you'll never have this problem again.

Jim