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
.htaccess
|httpd.conf
- 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?
© Stack Overflow or respective owner