This will request no authentication, if the Request URI has /error/ in it.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
SetEnvIf Request_URI ^/error/ noauth=1 AuthType Basic AuthName "Nothing here for you!" AuthUserFile /yourpathto/.htpasswd Order Deny,Allow Satisfy any Deny from all Require valid-user Allow from env=noauth |