Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old September 1st, 2008, 09:20 PM
tharden3's Avatar
Site Addict
 
Join Date: Jul 2008
Location: Ocala, FL (USA)
Age: 17
Posts: 590
Default What is the Index.htm page of a website?

Whats is the index.htm page of websites? I didn't really understand... is it supposed to be the "home page"? Or is it whatever you want it to be? I'm making a website, and my free web host required that I have one. I made one, and it works fine, but what is it supposed to be? Could you give me an example?
Reply
  #2  
Old September 1st, 2008, 09:28 PM
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 4,586
Default

Servers default to index.html whenever they are accessed at the IP address or domain name. It's the default landing page or home page.
Reply
  #3  
Old September 1st, 2008, 09:47 PM
tharden3's Avatar
Site Addict
 
Join Date: Jul 2008
Location: Ocala, FL (USA)
Age: 17
Posts: 590
Default

Quote:
Originally Posted by drhowarddrfine
Servers default to index.html whenever they are accessed at the IP address or domain name. It's the default landing page or home page.
does it matter if I end my index with .htm or .html? whats the difference?
Reply
  #4  
Old September 1st, 2008, 10:51 PM
David Laakso's Avatar
Expert
 
Join Date: Aug 2008
Location: US
Posts: 302
Default

Quote:
Originally Posted by tharden3
does it matter if I end my index with .htm or .html? whats the difference?
I think the .htm extension is from back in the day when computers couldn't handle file extensions greater than three characters. Nowadays, as far as I know, you are safe with either .htm or .html.
Reply
  #5  
Old September 1st, 2008, 11:23 PM
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 4,586
Default

Actually, it's because Microsoft couldn't handle larger extensions. *nix can handle up to 256 or somesuch.
Reply
  #6  
Old September 2nd, 2008, 03:21 AM
tharden3's Avatar
Site Addict
 
Join Date: Jul 2008
Location: Ocala, FL (USA)
Age: 17
Posts: 590
Default

but both htm and html are pretty much the same as far as extensions go, right? no differences?
Reply
  #7  
Old September 2nd, 2008, 03:51 AM
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 4,586
Default

Yes, they are the same, but servers can be set to respond to any extension, including none at all.
Reply
  #8  
Old September 2nd, 2008, 07:49 AM
Member
 
Join Date: Jun 2008
Location: Sweden
Posts: 120
Default

Quote:
Originally Posted by drhowarddrfine
Actually, it's because Microsoft couldn't handle larger extensions. *nix can handle up to 256 or somesuch.
Is this statment true then?:

"The extension *.html don't work in some versions of DOS/early Windows."

And that would be the only reason to use *.htm instead?
Reply
  #9  
Old September 2nd, 2008, 02:08 PM
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 4,586
Default

No. It's all a lie.
Reply
  #10  
Old September 2nd, 2008, 04:32 PM
Member
 
Join Date: Jun 2008
Location: Sweden
Posts: 120
Default

Quote:
Originally Posted by drhowarddrfine
No. It's all a lie.
Plz elaborate, don't mess with my head.. it feals like you are some contradictory in you statment.
Reply
  #11  
Old September 2nd, 2008, 05:37 PM
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 4,586
Default

I forgot my smiley face.

In Unix, there are no "extensions" that work like Windows. A dot is just another character. So it is just as easy to call a file text.rumpelstilskinin_is_a_weany as anything else. Unix doesn't care as long as you stay under the max filename length which, iirc, is 255 characters.

Under DOS and Windows (until recently?), anything after the dot was significant and couldn't be longer than 3 characters, hence the .htm extension.

Unix didn't care because the server handled that and you just set the server to interpret .htm the same as .html. Still true today.

In case you didn't know, the internet revolves around Unix and its standards.
Reply
  #12  
Old September 2nd, 2008, 06:08 PM
Newbie
 
Join Date: Feb 2008
Posts: 30
Default

Actualy servers DO discriminate between .htm and .html.
You can try this by uploading two diffent pages with the same name, but different extensions.

For your index (the titelpage of your site) you will be alright, using either index.htm or index.html, just do not use both! You won't have control over wich page will be shown.
Reply
  #13  
Old September 2nd, 2008, 07:13 PM
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 4,586
Default

Quote:
Originally Posted by zaankanter
Actualy servers DO discriminate between .htm and .html.
You can try this by uploading two diffent pages with the same name, but different extensions.
Well, of course, and maybe I didn't make it clear. Using .html or .htm is like using two different names altogether, but servers can be set up to accept either or both.
Quote:
just do not use both! You won't have control over wich page will be shown.
As I said, a server can be set to accept either.
Reply
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles