PDA

View Full Version : How to make my website home page comeup ?



digmen1
03-10-2007, 09:21 AM
Hi Guys

I am just starting a new website.

If its home page is called say "index.htm" how do it make this come up, if a surfer types in the url name of my web site eg mysite.com

Thanks in advance.

I can't find this anywhere !

Regards

Digby

tesco
03-10-2007, 01:53 PM
If it's an apache server the httpd.conf file has an option called DirectoryIndex where you say the names of the index file.

Example:

# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
DirectoryIndex index.html index.html.var index.php

If you don't use apache then whatever you use is probably similar.
The above would show index.html first if it exists, next index.html.var, then index.php. If nothing exists it reverts to showing a list of files in the directory, if that option is turned on.

If you host your own server you will need to set this up, or if you pay for hosting you will need to ask our host what the filename is (probably index.html or index.php).

digmen1
03-10-2007, 06:00 PM
Thanks for that Rosco.

I knew it would be something like that

Regards
Digby

100%
03-10-2007, 06:27 PM
on one site i used it was default.htm
weird