Welcome to WebmasterWorld Guest from 54.196.244.206

Forum Moderators: phranque

Message Too Old, No Replies

No default index.html load

     
11:27 pm on Jun 16, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Nov 30, 2003
posts:125
votes: 0


Hello,

I have a site which has numerous subfolders with index.html within them.

When browsing the site no longer finds the index.html page unless manually entered

ie

www.site.com/Word/

generates a 404

www.site.com/Word/index.html

finds the page fine.

The www.site.com URL finds the index.html page on the root fine.

Whats going on?

Cheers
Dave

2:21 am on June 17, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member txbakers is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Sept 1, 2001
posts:4392
votes: 0


You need to let the webserver know what the default page is for each folder. There might be a default "index.html" set up at the root, but beyond that it's up to you.

Any page can be the "default" one. It doesn't have to be called index.html if you don't want it to be.

8:07 am on June 17, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Nov 30, 2003
posts:125
votes: 0


How do I specify this default?

So let me get this right any index.html in a subfolder of root is NOT automatically default?

Cheers

9:03 am on June 17, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member topr8 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Apr 19, 2002
posts:3171
votes: 8


if your server is iis (windows) then go into "internet information services" select the website properties, find the documents tab, and tick: enable default document, you can also add a list of file names that the server will look for to use as the default document.

if you are using a hosting service somewhere in their control panel there should be an option to set the default document, if not then contact them.

1:31 pm on June 17, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 17, 2001
posts:1262
votes: 0


If you are on Apache, try editing the .htaccess file in your base director to include the line

DirectoryIndex index.html

That instructs the server to look for index.html first when a user tries to browse a directory. If you want, you can set up a list of filenames in the order you want, e.g.

DirectoryIndex index.html default.html home.html

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members