View Full Version : Home pages
ttttt
04-20-2006, 07:43 PM
Hi, I was just wondering,
if a domain is, for example:
www.mydomain.com,
Then shouldn't the home page be:
www.mydomain.com/index ?
So why do some domain have their home page as:
www.mydomain.com ? (This example works!)
AND
How can someone make the change from:
www.mydomain.com/index ?
Thanks
VIPStephan
04-20-2006, 10:30 PM
Gee, are you trying to become a senior member in ten days with all those posts? I guess you'll be banned before that becomes reality if you go on like that. :)
To your questions: When you acces a website via the domain name without asking for a special file the server (or browser or whatever) will look for an index.htm(l) automatically... I'm not sure but I believe .html is first in line, then .htm. There are a lot of other file formats (such as .php or .aspx) but anything with index written on it will be searched for automatically in the beginning. If it can't find such a file it will give you a notice that access to the folder is forbidden or show a document tree where access is allowed.
The mydomain website probably has a redirect to the main page whatever you type after the domain...
abrewitt
04-20-2006, 10:38 PM
When you enter a url in your browser for example yourdomain.com the browser will look for the index.html page. Errm that doesnt help does it? / sorry I tried!
Just remember that the internet is run on ip adresses not url's, the domain name servers return to your browser the ip address of the site and from there-ish the browser looks for the first page on that site, the index.html.
Well i tried, Anthony
drhowarddrfine
04-20-2006, 10:55 PM
the browser will look for the index.html page.No. The browser will look for root '/'. The server will search for 'index'.
oracleguy
04-20-2006, 10:59 PM
Yeah the server determines the default document to load. It can be configured to load any file you want. You could change it so you default page is someotherpage.php instead of something starting with index.
On IIS servers the default documents have to be set through the MMC. With Apache and .htaccess it is possible to set the default document with .htaccess.
ttttt
04-21-2006, 05:08 PM
Thanks for all the replies!
That answers my questsions :thumbsup:
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.