Portal Home > Knowledgebase > Articles Database > Block directory browsing htaccess?


Block directory browsing htaccess?




Posted by webhoster383, 02-04-2013, 12:55 PM
Hello, How would I block it so if there is no html file in the directory it will redirect to an error page instead of showing a directory listing. For example: https://serverminer.com/downloads/plugins/ Thank you

Posted by Etterack, 02-04-2013, 01:03 PM
Hello, I am not a coder, so I could be wrong, but I think you need to place the below directive in your .htaccess file: Options -Indexes <> Last edited by anon-e-mouse; 02-04-2013 at 04:46 PM.

Posted by webhoster383, 02-04-2013, 03:09 PM
Many thanks, works fine. Regards, <> Last edited by anon-e-mouse; 02-04-2013 at 04:46 PM.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Amazon EC2 (Views: 608)
15minuteservers down? (Views: 697)

Language: