Header menu


Thursday, 12 September 2013

Hide directory information in php when index file is not present using .htaccess.

When no index file is present in directory and you want to hide listing on other files in php then .htaccess can be used to hide directory information.
Just copy the below lines in .htaccess file and put .htaccess file in directory for which you want to hide files list.

Options -Indexes