index.php files don't show
Posted 02 July 2006 - 01:32 PM
If I try to access a directory where the index page has a php extension (index.php) it just lists the directory contents and does not parse the php file automatically. If the extension was html or htm it works fine. If I type in the exact "directory/index.php" it works fine. It just seems that the server will not recognize any php file unless I use the exact file name. Am I making sense?
How do I tell the server to run/open .html, .htm, .shtml and also .php?
Thanks in advance for your help.
Posted 02 July 2006 - 06:16 PM
DirectoryIndex index.html index.html.varNow add a space after index.html.var and add index.php
Now save the httpd.conf file and restart Apache. index.php files should now be run automatically when in a directory.
Posted 02 July 2006 - 06:23 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users