I already disabled directory browsing using this method How do I disable directory browsing? .. Now, is it possible for me to redirect it to a particular page?
Ex. mysite.com/subdirectory/another_directory/
to mysite.com/sorry.php
okay, i made it.
i just need to do this ..
RewriteEngine on
RewriteBase /client/
php_value upload_max_filesize 15M
php_value post_max_size 15M
#Options -Indexes
RewriteRule ^downloads/files/?$ /sorry.php [L,NC,R=302]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [L]
and it works!