.htaccess

Soldato
Joined
12 Jun 2005
Posts
5,361
Hi there,

Is it possible to create a .htaccess file that redirects the user to a certain page should there not be a index or default page to display (includes all the subdirectories of the directory that the .htaccess is in)

Thanks.
 
turn off indexes so users can't browse folders without default documents....

Code:
Options -Indexes

now the user will get a standard "403 forbidden" error page. you probably won't want that so you can specify your own.....

Code:
ErrorDocument 403 /403.htm
 
Back
Top Bottom