How to setup Directory Listing
Posted On: Nov 2, 2020

Hosted & Registered Over 2500 Domain!

When a web browser is pointed to a directory on your website 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 (can be found in FTP -> public_html folder):

Options +Indexes

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

Options -Indexes

It is important to prevent access to files in your folder when the folder doesn’t have an index files for security reasons. This is highly recommended.


Submit a Comment

Your email address will not be published. Required fields are marked *

Back To The Blog Page >>>