Skip to content

Instantly share code, notes, and snippets.

@emarthinsen
Created June 9, 2018 21:00
Show Gist options
  • Save emarthinsen/c32bd7260bb0cbc2733c99cd3484b4d1 to your computer and use it in GitHub Desktop.
Save emarthinsen/c32bd7260bb0cbc2733c99cd3484b4d1 to your computer and use it in GitHub Desktop.
Another .htaccess attempt
AuthType Basic
AuthName "Staging Area"
AuthUserFile /var/app/current/public/.htpasswd
Require valid-user
SetEnvIfNoCase HOST staging REQUIRE_AUTH
SetEnvIfNoCase Request_URI ^/privacy-policy$ !REQUIRE_AUTH
Order Allow,Deny
Allow from All
Deny from env=REQUIRE_AUTH
Satisfy any
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment