-
-
Save ralexandr/b631702a0c6a9a3eb26c9b7a3e7c73e0 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