can we not substitute index.html with main.html?

Status
Not open for further replies.
When you serve a website you can specify which filenames are the default page for each subdirectory or root directory. index.html is the most common name. I think that the names are ordered by priority example if you specify these as the names for the default page and you had all 3 pages in your directory than index.html would be the page to be displayed over all others, etc.

index.html
main.html
index.asp

if you have a default page in a directory and someone only specifies a directory without a filename like http://www.geocities.com/food/ than the server will return the default page in that directory. If no default page exists and the website has enabled directory browsing and a user goes to that directory they would see a list of files. If browsing is disabled than you will get an error page that no page exists.

Goecities in ths case controls the default filenames for each subdirectory in your website.
 
Status
Not open for further replies.
Back
Top Bottom