Exclude a sub directory in a protected directory
Posted
by
user1351358
on Pro Webmasters
See other posts from Pro Webmasters
or by user1351358
Published on 2012-06-26T16:08:58Z
Indexed on
2012/06/26
21:26 UTC
Read the original article
Hit count: 183
htaccess
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.
© Pro Webmasters or respective owner