Enable Directory Listing Indexes in htaccess

  Print

Enable Directory Listing Indexes in htaccess

To Enable Directory Listing, edit your htaccess file (click here for a guide on doing that) and add this code to the TOP of the file:

Options +Indexes

Now when you visit your website, or a specific directory (eg: 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?  

Related Articles

© Crucial