Disable or Enable directory indexing for Apache

Code snippet to Enable or disable Directory Indexing for Apache/LiteSpeed webservers
To be added to .htaccess for topmost or individual folders


Disable Directory Indexing

Options -Indexes

Enable Directory Indexing

Options +Indexes


Supported By Cosmos Hosting