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

08-03-2010, 06: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.

08-03-2010, 08: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.

08-03-2010, 10: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.

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