View Full Version : setting default index page
Haze
July 24th, 2001, 01:30
My server recognizes index.html or index.htm as the default index page. What is the .htaccess entry used to change that to index.php?
meow
July 24th, 2001, 04:20
I've used the following (I think) for SSI. A slight modification should work. :)
DirectoryIndex index.shtml index.html
JALman
July 24th, 2001, 04:30
Originally posted by meow
I've used the following (I think) for SSI. A slight modification should work. :)
DirectoryIndex index.shtml index.html
Obviously, putting index.php after DirectoryIndex would make sure the server checks the index.php file first. The good thing about it (at least to me) is that when you add multiple files into the list, the server checks the htaccess file to see if each file exists...if index.php exists, you would go to index.php. If not, the server moves on to the next file on the list. It makes a great safety net.
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.