473,387 Members | 1,510 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

What is the Index.htm page of a website?

tharden3
916 512MB
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?
Sep 1 '08 #1
12 1770
drhowarddrfine
7,435 Expert 4TB
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.
Sep 1 '08 #2
tharden3
916 512MB
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?
Sep 1 '08 #3
David Laakso
397 Expert 256MB
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.
Sep 1 '08 #4
drhowarddrfine
7,435 Expert 4TB
Actually, it's because Microsoft couldn't handle larger extensions. *nix can handle up to 256 or somesuch.
Sep 1 '08 #5
tharden3
916 512MB
but both htm and html are pretty much the same as far as extensions go, right? no differences?
Sep 2 '08 #6
drhowarddrfine
7,435 Expert 4TB
Yes, they are the same, but servers can be set to respond to any extension, including none at all.
Sep 2 '08 #7
asedt
125 100+
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?
Sep 2 '08 #8
drhowarddrfine
7,435 Expert 4TB
No. It's all a lie.
Sep 2 '08 #9
asedt
125 100+
No. It's all a lie.
Plz elaborate, don't mess with my head.. it feals like you are some contradictory in you statment.
Sep 2 '08 #10
drhowarddrfine
7,435 Expert 4TB
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.
Sep 2 '08 #11
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.
Sep 2 '08 #12
drhowarddrfine
7,435 Expert 4TB
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.
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.
Sep 2 '08 #13

Sign in to post your reply or Sign up for a free account.

Similar topics

22
by: Anoop Ghanwani | last post by:
In my public_html directory, I have a bunch of files: index.html x.html, y.html, etc. When a user accesses the domain without a file name, he/she automatically accesses the index.html file....
2
by: gene.ellis | last post by:
I have content about projects that I store in a MS SQL database. People access this information through pages which are dynamically created in PHP. Since my content is stored in the database, how...
2
by: PDXWilliam | last post by:
Hello, Please forgive if this is off-topic ... and I'd welcome if someone pointed me elsewhere to find this info. I'm programmatically retrieving data from a website and am unable to figure...
6
by: Doc | last post by:
I'm trying to get to the bottom of a problem I've been having with publishing a freebie website. I'm using a program called WebEasy. Using a very simple site upload as an example, in this case a...
2
by: PDXWilliam | last post by:
Hello, I'd really appreciate help on this. I'm programmatically retrieving data from a website and on one particular page, I'm figure out what I should be sending to grab this data. Please...
2
by: FrankStallone | last post by:
I am just getting started in XML and I made my first xml, dtd and xslt file and XML spy said they were all valid and they worked. This was the xslt doc that worked. <?xml version="1.0"...
4
by: ALI-R | last post by:
My home page of my website is named index.aspx ,when I upload it to the host ,I get 403 forbidden error,If I put an index.html there that link that aspx file,eveything works perfect? my second...
0
by: willem joubert | last post by:
I got the following message from Microsoft Web Hosting Customer Support ===================================================== The only file that we see located within the /web directory of your...
1
by: jeddiki | last post by:
I am using curl and DOMDocument to extract the links from my website. This is my script: require("my_functions.php"); $target_url =...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.