[thelist] change index.htm to index.php

Ben Phillips ben at inchima.com
Wed Mar 6 06:50:01 CST 2002


> >   How do I set index.php to be the file the server looks for instead
> >   of index.htm?
>
> On Apache you just add "index.php" in the
> apache/conf/httpd.conf file so it looks like this:
> [snip]

or if you don't have access to the httpd.conf files (eg. you are on a
shared server), then edit the .htaccess file in your root directory...

add this line:

DirectoryIndex index.php index.html

this will look for index.php in each directory first, then look for
index.html if index.php is not found.

benji
inchima.com




More information about the thelist mailing list