can we not substitute index.html with main.html? - Techist - Tech Forum

Go Back   Techist - Tech Forum > Internet > Internet Software and Browsers
Click Here to Login
Closed Thread
 
Thread Tools Display Modes
 
Old 12-27-2004, 03:23 PM   #1 (permalink)
Master Techie
 
Join Date: Mar 2004
Posts: 2,069
Default can we not substitute index.html with main.html?

Hi]
can we not substitute index.html with main.html

are these equivalent

http://www.geocities.com/foo/index.html

http://www.geocities.com/foo

cause they both load the main page?
__________________

__________________
rookie1010 is offline  
Old 12-27-2004, 03:25 PM   #2 (permalink)
PowerQuest / Opera
 
TheMajor's Avatar
 
Join Date: Jun 2004
Location: Netherlands
Posts: 10,177
Default

Depends on the server configuration.
__________________

__________________
TheMajorMMX - Intel P200 MMX @ 225Mhz - V-Tech (PcPartner) Baby-AT mb w/ Intel Triton TX chipset - Nvidia Riva TNT2 M64 w/ 16MB - 256MB M-Tec SDRAM - Still running.....
TheMajor is offline  
Old 12-27-2004, 03:51 PM   #3 (permalink)
Master Techie
 
Join Date: Mar 2004
Posts: 2,069
Default

you mean the guys who are hosting my page?

and the equivalence of these would be dependent on the server configuration too

http://www.geocities.com/foo/index.html

http://www.geocities.com/foo

also the absence of the www. in the begining is server configuration dependent too ?
__________________
rookie1010 is offline  
Old 12-27-2004, 06:03 PM   #4 (permalink)
Wizard Techie
 
Join Date: Jul 2003
Posts: 3,937
Default

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.
__________________
ekÆsine is offline  
Old 12-27-2004, 06:38 PM   #5 (permalink)
Super Techie
 
Join Date: Dec 2004
Posts: 319
Send a message via AIM to evelmunkey
Default

The above is correct, and from experience geocities only allows index.html.
__________________
evelmunkey is offline  
Closed Thread

Thread Tools
Display Modes

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 11:05 AM.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2018, vBulletin Solutions, Inc.