Find these lines in the httpd.conf file and change the order so index.html or index.htm are the first entries in the line:
- Code: Select all
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
DirectoryIndex index.phtml index.php index.php4 index.php3 index.cgi index.pl index.html index.htm index.shtml
The above order is from my httpd.conf file so yours may be different with index.php being the first in the line perhaps.
Save the file and restart Apache - don't forget to always make a back up of ini and conf files before editing.
BTW - Apache will load the first index file in the above order it finds in the Directory.
So if you don't want an index.php loaded, delete or rename it (index_original.php for example
)and add your index.html in its place then there is no need to mess with the httpd.conf file also I have never known a need to have more than 1 index files in the same directory.
1. The new DeskTopXampp
Launch Control for XAMPP / XAMPPlite
Posted by Ridgewood
available from Ridgewood'sDTX web site
2. Build Rich AJAX
Applications - Faster
TIBCO General Interface Pro Edition
and Open Source
Fully working with NO
donations required to get a user/password