eboundhost.com

Hosting the world one click at a time

Help Center

Q: How can I make the webserver show a default page other than index.html?
The DirectoryIndex directive controls what page will be shown when a client asks for a directory in their browser.

By default, DirectoryIndex directive is set to:

DirectoryIndex index.html index.htm default.htm index.php index.php3 index.phtml mwindex.phtml

(The above directive must be all on one line in an .htaccess file)

If you want to change the above so that the default page will be, for example, index.shtml, make an .htaccess file in the directory where you want this behavior to occur, and put a DirectoryIndex directive in the file all on one line. Put index.shtml first in the list of filenames if you have more than one filename in your list since the webserver will look for DirectoryIndex files in order.

If the webserver finds no files in the current directory that match names in the DirectoryIndex directive, then a directory listing will be displayed to the browser, showing all files in the current directory.

If you capitalize or change the case of any of your filenames, then they won't match if they are not also capitalized in the DirectoryIndex directive. You either need to have all your filenames lowercase to match the default DirectoryIndex or you should setup your own .htaccess file with your own DirectoryIndex directive that has whatever capitalization you want.
FREQUENTLY ASKED QUESTIONS
1) Can I block certain IP addresses from seeing my website?
2) How can I make the webserver show a default page other than index.html?
3) How do I deny web access to a particular file?
4) Web server error code explanation (Apache, IIS, Netscape)
5) Why does my website just say "Error 403 Forbidden"?

ONLINE MANUALS

CONTACT SUPPORT
Name:
Email:
Telephone:
Website:
Problem Description:
(650 char limit)

© 2000-2008 EBOUNDHOST. ALL RIGHTS RESERVED.