Re: PHP file as homepage?
| From: | Chris Shiflett | Date: | Tue, 15 Mar 2005 16:28:45 +0000 |
| Subject: | Re: PHP file as homepage? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-210823@lists.php.net to get a copy of this message | ||
Phil Neeb wrote:
I've noticed that PHP.net uses index.php as its homepage and well, I'm curious as to how that's possible. Is it the server setup that allows them to load a php file as their homepage or something else?You can specify these, in order or preference, with the DirectoryIndex directive (Apache). In httpd.conf, just do something like this: DirectoryIndex index.html index.php This gives preference to a static index, if it exists. You can only use index.php if you want. Hope that helps. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/