RE: [PHP] Questions about simple php problems

From: Date: Wed, 07 Feb 2001 12:15:40 +0000
Subject: RE: [PHP] Questions about simple php problems
Groups: php.general 
Request: Send a blank email to php-general+get-38535@lists.php.net to get a copy of this message
> One exception, on the main page, I have "index.html" which is simply a > copy of "Index.php" renamed. This is so that requests to www.server.org/ > will come up correctly. > > Probably there's a place to fix that in apache, but I haven't gone after it > yet. There is a way to fix this on Apache, and a very easy one at that. Go into your httpd.conf file and look for a set of lines that look something like: <IfModule mod_dir.c> DirectoryIndex index.php index.shtml </IfModule> The DirectoryIndex directive lists, in order, which pages the server should look for when it receives a request ending in /. As you can see, my config looks for an index.php file, followed by an index.shtml file. If it fails for both of these, I *think* it will return an HTTP 404 error. HTH Jon

« previous php.general (#38535) next »