Welcome to WebmasterWorld Guest from 18.104.22.168 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
No default index.html load djtaverner
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
generates a 404
finds the page fine.
The www.site.com URL finds the index.html page on the root fine.
Whats going on?
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.
How do I specify this default?
So let me get this right any index.html in a subfolder of root is NOT automatically default?
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.
If you are on Apache, try editing the .htaccess file in your base director to include the line
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