index.htm or index.html? (Full Version)

All Forums >> [Web Development] >> Microsoft FrontPage Help



Message


JohnLearner -> index.htm or index.html? (4/24/2008 6:59:10)

Just a quickie: Should the Home Page be called index.htm or index.html and does it really matter?

Thanks,

John.




jaybee -> RE: index.htm or index.html? (4/24/2008 8:52:31)

It shouldn't matter. Some of my sites use htm others html and still others use php. Some people have shtml.

AFAIK the browsers just head straight for the page called index unless your host has decided otherwise. Where you will get problems is if you have two pages in the same directory both called index.




JohnLearner -> RE: index.htm or index.html? (4/24/2008 10:21:47)

Hi, jaybee, how are you doing?

Thanks for that. I didn't know about the 'double index' - I have a site or two where I've got just that. I'll delete the .html pages. Since FP always creates a .htm when you make a new page, I'll stick to that in future.

John.




jaybee -> RE: index.htm or index.html? (4/24/2008 12:41:55)

The problem with the double index file in the same folder is it can be a bit unpredictable which one gets loaded.

For example on one host I had two in a subfolder. One was htm and the other php. it was all working fine until the host did a server upgrade and the priority changed so instead of my nicely formatted php page, it put up the html "site is offline" page.




Larry M. -> RE: index.htm or index.html? (4/24/2008 13:01:26)

quote:

Where you will get problems is if you have two pages in the same directory both called index


You betcha. This causes problems in instances where the host has assigned a file extension heirarchy with, for instance, .html, .htm, .shtml loading in that order. In your situation it's best to rename the index.html to index2.html and let the server default to index.htm. When you ascertain all works as it should, then go ahead and delete the index.html file.

Some hosts are ahead of the curve in this regard - Tom Brunt of OutFront is a good example. When publishing an index.htm file, the OutFront server automatically converts it to index.html. All other pages publish and operate normally with the .htm extension.




JohnLearner -> RE: index.htm or index.html? (4/24/2008 13:19:59)

OK. I've taken the points on board and am actioning them.

Thanks to you both for your kind input.

John. :)




cbarton -> RE: index.htm or index.html? (4/26/2008 9:49:19)

Some hosting companies allow you to modify the hierarchy in a control panel for each of your accounts. I imagine it's just a matter of a support ticket to tech support requesting the one you'd like (if that control isn't in your own hands).




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.03125