How To Enable Directory Listing Indexes In htaccess


Step 1 - Access your .htaccess file.

Step 2 - Add the below code to the top of the file, then click Save:

Options +Indexes


When you visit your website, or a specific directory (e.g.: yourdomain.net.au/files) that doesn't have a index.php or index.html file, you will see a directory listing like this:


f58acd2559324a1e8bce27bd4211b51d0ff0a8d2?t=18d647211232c66d1b2182cd19861697

You can enable Directory Listing for specific directories by creating a file called .htaccess in them and adding the same code.


Did you find this article useful?