Last active
May 28, 2019 10:30
-
-
Save kevana/7b884b2caed1a391f125 to your computer and use it in GitHub Desktop.
Part of Nginx config for cookie-based routing.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ($http_cookie ~* (bcp_active__my_account|bcp_active__credit_app)=Y) { | |
rewrite ^/humans.txt$ /address/standardize redirect; | |
} | |
if ($http_cookie !~* (bcp_active__my_account|bcp_active__credit_app)=Y) { | |
rewrite ^/address/standardize$ /humans.txt redirect; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment