Entry
How do I make a php document the default index page on my server?
Mar 13th, 2002 22:12
Philip Olson, Narendra Jain, John Howard,
Depending on your web server, you can define the types of extensions to
be used to run via your PHP engine and then served over the internet.
See this faqt for related information on PHP extensions:
http://www.faqts.com/knowledge_base/view.phtml/aid/9546
The default file (usually index.html or index.php) is set by your web
server. For example, you'll see a DirectoryIndex setting in httpd.conf
that's similar to:
DirectoryIndex index.php index.html default.php
Now let's assume the following:
http://www.example.com/foo/
Basically this says "If index.php exists in foo/, load it. If not then
check for index.html and load it. If it doesn't exist either, load
default.php ..."
For more information on DirectoryIndex, see:
http://hoohoo.ncsa.uiuc.edu/docs/setup/srm/DirectoryIndex.html
http://httpd.apache.org/docs/mod/mod_dir.html
Depending on your setup, this directive can also be set in .htaccess