htaccess change DirectoryIndex priotiry to php and not html
- by Jayapal Chandran
In a production server there are index.html and index.php
By default index.html is getting loaded.
I want index.php to be the default script to load and if index.php is not present then index.html can load.
It is a shared hosting so we do not have access to the httpd.conf file
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?