Home > Website > How to setup Directory Listing

How to setup Directory Listing

When a web browser is pointed to a directory on your web site which does not have an index.html file in it, the files in that directory can be listed on a web page.

To have the web server produce a list of files for such directories, use the below line in your .htaccess:

Options +Indexes

To have an error (403 - Forbidden) returned instead, use this line:

Options -Indexes