...

View Full Version : "home.html" vs. "index.html", and ".htm"



keys88
08-03-2010, 05:16 PM
Can "home.html" be used interchangeably with "index.html" for the default file's name in all situations?

(I want to use "home.html" simply for my own clarity, in folders with no user-readable contents where the index redirects to the homepage.)

Also: are ".html" and ".htm" completely interchangeable?

Thank you.

djh101
08-03-2010, 07:40 PM
homt.html could be used instead of index.html if you plan on linking their directly (as could any page name). Going directly to a folder, though (i.e. mysite.com/folder) or to the main page of your site will automatically go to index.html. As for htm and html, yes, they are interchangeable, although if you plan on changing the ending of your pages, be sure to change all the links to them, too.

VIPStephan
08-03-2010, 09:12 PM
The default page file name can be changed/specified either in the server configuration or in an htaccess file if the other one isn’t available: http://www.javascriptkit.com/howto/htaccess6.shtml

The htm extension is a relict of the times where file names could only have eight characters in the name and three characters in the extension. But basically it’s the same as the html extension.

keys88
08-04-2010, 12:49 AM
Thanks so much for these answers. Very helpful.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum