htaccess change DirectoryIndex priotiry to php and not html

Posted by Jayapal Chandran on Stack Overflow See other posts from Stack Overflow or by Jayapal Chandran
Published on 2011-02-19T07:22:48Z Indexed on 2011/02/19 7:25 UTC
Read the original article Hit count: 188

Filed under:
|
  1. In a production server there are index.html and index.php
  2. By default index.html is getting loaded.
  3. I want index.php to be the default script to load and if index.php is not present then index.html can load.
  4. It is a shared hosting so we do not have access to the httpd.conf file
  5. So i thought of creating .htaccess file which would do the above condition.

    What is the directive to include in .htaccess file to do so?

© Stack Overflow or respective owner

Related posts about .htaccess

Related posts about httpd.conf