website opens to index of

K

kcooper225

when I type my web address it does not open the homepage but goes to the
Index of file listing. How do I get it to open the index.htm file when I type
my web address
 
F

Frankster

Make sure you have the main page named "index.htm" in the web root
directory.

-Frank
 
A

Andrew Murray

You must use the "home" page file name that your host sets, you need to use
this default file in every folder: eg it could be "index.html" (or
index.htm, home.html, default.html etc) so, for the default page in each
folder, a page called "index.html" (etc) must be placed in each folder and
sub-folder.

The host can also turn off the directory browsing (so you don't get that
file list), but the user will see a 403 Forbidden message, unless they have
browsed directly to another html file, or unless a default index.htm page
exists in those folders.

Check with your host about which file name they have set to be used.
 
T

Tom Willett

Your default page must be named according to what your host requires. You
need to check with them. It could be index.htm, index.html, default.htm,
etc. Have them verify it for you.
 
F

Frankster

Yeah, I know. But I didn't have time to get into detail. Although, I see
that Andrew Murray provided a good detailed response.

However, many hosts configure for multiple "auto-display" files. index,
default, home, etc. Usually index will work on most systems. But you are
right, it just depends on the host sytem config.

-Frank
 
Top