website opens to index of

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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.
 
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.
 
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
 
Back
Top