Link to home
Start Free TrialLog in
Avatar of perldog
perldog

asked on

Need to leave only one subdirectory of a protected directory unprotected

I use .htaccess to protect a directory and all of its subdirectories.  But there is one subdirectory that I don't want to be protected.  I already have .htaccess and .htpasswd files set up for the parent directory, but I was unable to find anything regarding granting public access to a single subdirectory. I'm running Apache 2.0.50.
Thanks
ASKER CERTIFIED SOLUTION
Avatar of hankknight
hankknight
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If that doesn't work, you might need to put the following in (although it might be slower):

AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthName members
AuthType Basic

order deny,allow
deny from none
allow from all
satisfy any

Avatar of perldog
perldog

ASKER

satisfy any worked!  Thanks.