How to disable directory browsing in WordPress

By | August 7, 2015

This should be on by default. Can’t believe I need to modify my .htaccess file.

To disable this you need to add this line:

Options -Indexes

at the end of your .htaccess file in root folder of your site.

Leave a Reply

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