I have a directory protected by htaccess. Here is the code I use now:
AuthName \"Test Area\" Require valid-user AuthUserFile \"/***/.htpasswd\" AuthType basi
Just create an .htaccess file in the subdirectory with the content:
Satisfy any