MilesWeb Hosting Forum

Web Hosting Technical Support => How To's => Topic started by: Dipak Bhoi on July 08, 2014, 01:16:21 PM

Title: How to disable directory listing / browsing in .htaccess file
Post by: Dipak Bhoi on July 08, 2014, 01:16:21 PM
Hello guys,

To prevent the server from showing a listing of the existing files from in one directory in case there is no index file in that directory. The Options directive is the place where you can enable or disable the index generation.

To disable directory list, add following line into your .htaccess file.

QuoteOptions -Indexes

To enable directory list, add following line into your .htaccess file.
Quote
Options +Indexes

That's all.

Enjoy !!!