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

Reply

Join Date: May 2004
Posts: 173
Reputation: mddv is an unknown quantity at this point 
Solved Threads: 2
mddv's Avatar
mddv mddv is offline Offline
Junior Poster

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

 
0
  #1
Jun 1st, 2004
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
Quality Pre-made website templates - 100's of downloadable professional website templates that are at affordable prices .

Website Design Tutorial - Your guide to website design
Reply With Quote Quick reply to this message  
Join Date: Nov 2003
Posts: 207
Reputation: rixius is an unknown quantity at this point 
Solved Threads: 1
rixius rixius is offline Offline
Posting Whiz in Training

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

 
0
  #2
Jun 2nd, 2004
In apache, find the httpd.conf, and find this line:
DirectoryIndex index.html
Add index.shtml to the end of that line.
Reply With Quote Quick reply to this message  
Join Date: Feb 2003
Posts: 793
Reputation: Paladine has a spectacular aura about Paladine has a spectacular aura about Paladine has a spectacular aura about 
Solved Threads: 26
Team Colleague
Paladine's Avatar
Paladine Paladine is offline Offline
Master Poster

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

 
0
  #3
Jun 2nd, 2004
mddv are you using Apache or IIS or something else for the webserver?
Assistant Manager, Pharmacy Informatics
Wordpress Learning Blog
Updated : ASP.Net Login Code
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 14
Reputation: carlino is an unknown quantity at this point 
Solved Threads: 0
carlino's Avatar
carlino carlino is offline Offline
Newbie Poster

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

 
0
  #4
Jul 22nd, 2004
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.
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 14
Reputation: wfwh is an unknown quantity at this point 
Solved Threads: 0
wfwh wfwh is offline Offline
Newbie Poster

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

 
0
  #5
Jan 4th, 2005
You should be able to write an .htaccess file and have it direct to your .shtml file instead.
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 5
Reputation: wwazman is an unknown quantity at this point 
Solved Threads: 0
wwazman wwazman is offline Offline
Newbie Poster

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

 
0
  #6
Feb 16th, 2005
so if I wanted both would it be:
DirectoryIndex index.html index.shtml ?
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 15
Reputation: Page is an unknown quantity at this point 
Solved Threads: 0
Page Page is offline Offline
Newbie Poster

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

 
0
  #7
Feb 18th, 2005
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Linux Servers and Apache Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC