Header menu

_________________________________________________________________________________

Thursday 12 September 2013

Using some other file as index file when no index file is in the directory using .htaccess

Alternative index file using .htaccess

When there is no index file in php directory and you want that some other file act as index file then this code can be helpful
search is done from left to right ... whichever file is found first will be shown as index file


DirectoryIndex index.php index1.php index2.php index3.php

# u can use any name you want in place of index1.php

No comments:

Post a Comment