Showing posts with label directory index. Show all posts
Showing posts with label directory index. Show all posts

Thursday, 9 October 2014

How to enable and disable directory index listings using an .htaccess file?

Enable directory index listings
In some cases, however, you may want to enable index listings for a directory. 
To do this, use a text editor to add the following line to the .htaccess file:

Options +Indexes

This directive enables standard indexing, where the index listing shows 
only the filenames. You can also enable “fancy” indexing, where the 
index listing shows filenames, their filesizes, and when they were 
last modified. To do this, add the following line to the .htaccess file:

IndexOptions +FancyIndexing