Re: php.net's index.php
| From: | Ryan Fischer | Date: | Sun, 29 Jul 2001 15:21:50 +0000 |
| Subject: | Re: php.net's index.php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-60102@lists.php.net to get a copy of this message | ||
You wrote:
> I was wondering what I would have to do in order to have index.php
load up
> automatcially when someone went to my domain. IE if they go to
> www.mydomain.com and I have index.html or index.htm there then those
pages
> get loaded first. How could I do it so index.php, index.php3,
index.phtml
> were default as well?
Create a file called .htaccess with this in it:
DirectoryIndex index.php
Upload it to the directory you want it to affect.
This assumes you're using Apache, of course.
HTH! :)
--
-Ryan :: ICQ - 595003 :: GigaBoard - http://www.gigaboard.net/