Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Aug 2010
    Posts
    57
    Thanks
    26
    Thanked 0 Times in 0 Posts

    "home.html" vs. "index.html", and ".htm"

    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.

  • #2
    Regular Coder djh101's Avatar
    Join Date
    May 2009
    Location
    California
    Posts
    616
    Thanks
    48
    Thanked 65 Times in 65 Posts
    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.
    "Yeah science!"
    Online Science Tools

  • #3
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,672
    Thanks
    6
    Thanked 1,006 Times in 979 Posts
    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.

  • #4
    New Coder
    Join Date
    Aug 2010
    Posts
    57
    Thanks
    26
    Thanked 0 Times in 0 Posts

    Thank you

    Thanks so much for these answers. Very helpful.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •