Options -Indexes RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f #RewriteRule ^ - [R=404,L] #RewriteRule ^ - [R=403,L] #ErrorDocument 404 #ErrorDocument 403
info at phpclasses dot org