views:

1307

answers:

2

I have password protected my entire website using .htaccess but I would like to expose one of the sub directories so that it can be viewed without a password.

How can I disable htaccess password protection for a sub directory? Specifically what is the .htaccess syntax.

Here is my .htaccess file that is placed in the root of my ftp

AuthName "Site Administratrion"
AuthUserFile /dir/.htpasswd
AuthGroupFile /dev/null

AuthName secure
AuthType Basic
require user username1
order allow,deny
allow from all
+4  A: 

You need to add another .htaccess file to the subdirectory that overrides the authentication. .htaccess cascades upwards, i.e. it will look in the current folder, then go up a level and so on.

Sohnee
do you happen to know the syntax? I understand the concept but do not know how to implement it.
justinl
+4  A: 

You need to create a new .htaccess in the concerned directory and include "Satisfy Any" directive to it.

RageZ
thanks RageZ. worked like a charm
justinl
you are welcome.
RageZ