943,369 Members | Top Members by Rank

Jun 1st, 2004
0

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

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 2
Junior Poster
mddv is offline Offline
173 posts
since May 2004
Jun 2nd, 2004
0

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

In apache, find the httpd.conf, and find this line:
DirectoryIndex index.html
Add index.shtml to the end of that line.
Reputation Points: 12
Solved Threads: 3
Posting Whiz in Training
rixius is offline Offline
212 posts
since Nov 2003
Jun 2nd, 2004
0

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

mddv are you using Apache or IIS or something else for the webserver?
Team Colleague
Reputation Points: 211
Solved Threads: 27
Master Poster
Paladine is offline Offline
793 posts
since Feb 2003
Jul 22nd, 2004
0

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

Quote originally posted by rixius ...
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.
Reputation Points: 11
Solved Threads: 0
Newbie Poster
carlino is offline Offline
14 posts
since Jul 2004
Jan 4th, 2005
0

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

You should be able to write an .htaccess file and have it direct to your .shtml file instead.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
wfwh is offline Offline
14 posts
since Jan 2005
Feb 16th, 2005
0

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

so if I wanted both would it be:
DirectoryIndex index.html index.shtml ?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
wwazman is offline Offline
5 posts
since Feb 2005
Feb 18th, 2005
0

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

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Page is offline Offline
15 posts
since Jan 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Linux Servers and Apache Forum Timeline: Former Abyss newbie ; folder help
Next Thread in Linux Servers and Apache Forum Timeline: Where have I gone wrong?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC