apache - htaccess change DirectoryIndex priority to php and not html -
- in production server there index.html , index.php
- by default index.html getting loaded.
- i want index.php default script load , if index.php not present index.html can load.
- it shared hosting not have access httpd.conf file
so thought of creating .htaccess file above condition.
what directive include in .htaccess file so?
besides, here explaining reason above.
- the php project done in codeigniter framework.
- in sub folder root have oscommerce.
- we not have index.html there , index.php present.
- periodically index.html created means has iframe code.
- the client reports , keep deleting index.html file
- we have changed ftp password.
- so thought temp solution make index.php loaded default instead of index.html
as per apache documentation directoryindex, put following in .htaccess
file in same directory index.php
:
directoryindex index.php index.html
Comments
Post a Comment