954,184 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how to enable index.shtml instead of index.html.

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

mddv
Junior Poster
174 posts since May 2004
Reputation Points: 10
Solved Threads: 2
 

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

DirectoryIndex index.html

Add index.shtml to the end of that line.

rixius
Posting Whiz in Training
233 posts since Nov 2003
Reputation Points: 12
Solved Threads: 3
 

mddv are you using Apache or IIS or something else for the webserver?

Paladine
Master Poster
Team Colleague
824 posts since Feb 2003
Reputation Points: 211
Solved Threads: 27
 

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:

carlino
Newbie Poster
14 posts since Jul 2004
Reputation Points: 11
Solved Threads: 0
 

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

wfwh
Newbie Poster
14 posts since Jan 2005
Reputation Points: 10
Solved Threads: 0
 

so if I wanted both would it be:
DirectoryIndex index.html index.shtml ?

wwazman
Newbie Poster
5 posts since Feb 2005
Reputation Points: 10
Solved Threads: 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.

Page
Newbie Poster
15 posts since Jan 2005
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: