0

Hi one of my friends is having a problem, so if anyone know anything about how to enable index.shtml instead of index.html on the webserver would you be able help me and my friend.

Thankyou

7
Contributors
6
Replies
7
Views
13 Years
Discussion Span
Last Post by Page
0

In apache, find the httpd.conf, and find this line:

DirectoryIndex index.html

Add index.shtml to the end of that line.

0

In apache, find the httpd.conf, and find this line:

DirectoryIndex index.html

Add index.shtml to the end of that line.

Exactly, and if I remember correctly apache check them in the order they are written as well. So if you use for example both index.shtlm and index.html you can decide which one to look for first. Not that I can think of a situation when you do, but there must be, since the option to is there. Or maybe not. :confused:

0

You should be able to write an .htaccess file and have it direct to your .shtml file instead.

0

There should be a long lisrt in httpd.conf, and it is displayed in the order it is listed in that file. Here is a typical file:

DirectoryIndex index.html index.wml index.cgi index.shtml index.jsp index.js index.jp index.php4 index.php3 index.php index.phtml index.htm default.htm default.html home.htm

So if there are both index.html and index.cgi in the same directory - index.html will be displayed when no file is specifically called in the URL.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.