Forum Moderators: phranque

Message Too Old, No Replies

index.php as index?

         

Sypher_5

8:50 pm on Jul 12, 2004 (gmt 0)

10+ Year Member



I'm trying to figure out how I set up Apache to first check for an index.php then index.shtml then index.html so it'll give the php then ssi index pages before an html index.

Thanks.

Longhaired Genius

8:59 pm on Jul 12, 2004 (gmt 0)

10+ Year Member



This is possible but is it wise? Why not have just one index page like every other site on the web?

jatar_k

9:01 pm on Jul 12, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



the directive is DirectoryIndex, and it is the order of the extensions that is important

[httpd.apache.org...]

Gibble

9:02 pm on Jul 12, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In the apache config file alter the DirectoryIndex

eg
DirectoryIndex index.php index.shtml index.html index.htm

Sypher_5

9:14 pm on Jul 12, 2004 (gmt 0)

10+ Year Member



Thanks everyone.

And because I have several sites that use different formats on my PC which I use for dev. I find it easier to navigate the site to check changes rather than move through the directores in Apache.