Exclude a sub directory in a protected directory
- by user1351358
I need to exclude protection on one of the folder inside a protected directory with .htaccess
I put .htaccess in here:
/home/mysite/public_html/new/administrator/.htaccess
The directory need to be exclude from protection:
/home/mysite/public_html/new/administrator/components/com_phocagallery/
My .htaccess file :
AuthUserFile "/home/mysite/.htpasswds/public_html/new/administrator/passwd"
AuthType Basic
AuthName "admin"
require valid-user
SetEnvIf Request_URI "(/components/com_phocagallery/)$" allow
Order allow,deny
Allow from env=allow
Satisfy any
I tried but not working on my purpose. I suspect my path to the excluded directory may have some mistakes. Please advise me.
Thanks.