* To enable directory listing, add this line into your ".htaccess" file:
Code: Select all
Options +Indexes
Code: Select all
Options -Indexes
this will disable direcotry indexing in every sub-folder too.
if you want to enable it on whole website, do same.
if you want to disable / enable it in specific directory, then add the opposite into that directory.
for example if you have disabled indexing on whole website and want it to be enabled in like "yoursite.com/blah/doh" then add enable line into the .htaccess file that is in that directory (yoursire.com/blah/doh/.htaccess" < there)
* To ignore file types:
Code: Select all
IndexIgnore *.bat *.exe
* To replace index file with something else:
Code: Select all
DirectoryIndex customindex.php