quick htaccess question

Permabanned
Joined
18 Jun 2008
Posts
24
Location
Cannock
hi :)

if i want a certain folder to be access denied, but not subdirectories... is there an alternative to:

Code:
IndexIgnore *

?

e.g. i dont want people to see the directory listing in root/clients but if i do want viewable listings in root/clients/client01/

in other words i will give the url to a client of their own folder but they wont be able to back up a stage to see the list of client folders ;)

is there an easy way? or do i have to put htaccess files in all the subdirectories to switch listing back on?
 
Not directly, but :
Code:
RewriteEngine on
RewriteRule ^$ . [F]
Options +Indexes
- in root/clients/.htaccess should have the effect you're looking for
 
Back
Top Bottom