I am trying to password protect one URL on a Magento site.
I have my .htpasswd setup
I have tried using the directive - NO LUCK. I also tried the following:
SetEnvIf Request_URI ^/url-name require_auth=true AuthType Basic AuthName 'By Invitation Only' AuthUserFile /var/www/vhosts/path/.htpasswd Order Deny,Allow Deny from all Satisfy any Require valid-user Allow from env=!require_auth
But when I do the above it ends up doing the entire site. I am putting everything right before the tag