Quantcast
Channel: admin – Cakephp Example
Viewing all articles
Browse latest Browse all 10

How to disable directory browsing by .htaccess?

$
0
0

Want to disable directory browsing in your web server ?
It’s very simple.
Open your .htaccess file and write the bellow line at the end of line.

Options -Indexes

A complete .htaccess file example given bellow:

<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/$1 [L]
   Options -Indexes
</IfModule>

Viewing all articles
Browse latest Browse all 10

Trending Articles