Index.html page not showing, just folder contents? Help!

They have: 96 posts

Joined: Jul 2005

This is an odd situation.
I created a newslettter for a new site we are launching soon. However if I go to the address without typing index.html (you shouldn't have to) you get the folder contents instead?

Go to http://www.halifaxdining.ca/newsletter/
You will see the contents.
but go to http://www.halifaxdining.ca/newsletter/index.html and it works.

Any suggestions? Thanks

Roo's picture

She has: 840 posts

Joined: Apr 1999

Go in the the control panel and if you have something called 'Index Manager' turn *off* the index for that directory.

It is strange because normally you would only see this if the directory didn't have and index.html file.

If you don't have the ability to turn the index off contact your host.

Roo

He has: 629 posts

Joined: May 2007

You may also be able to create a file called ".htaccess" (note the dot at the start of the name) and put this file in the "newsletter" folder with this line in it:

DirectoryIndex index.html

You can make a list of alternate names for index files, too. viz:

DirectoryIndex index.php index.php3 messagebrd.pl index.html index.htm

Note that hosts can vary the names used for index files. You could also try renaming the file as "index.htm" or "default.htm" - but better to ask your hosting company.

Cordially, David
--
delete from internet where user_agent="MSIE" and version < 8;

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.