Created
September 8, 2019 20:30
-
-
Save technocake/5dee869c076d97a28fe9f1f0743a035c to your computer and use it in GitHub Desktop.
NGINX - Remove fbclid from all urls
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
location / { | |
... | |
# Disable fbclid tracking on all urls | |
if ($query_string ~ "^(.*)fbclid=(.*)$") { | |
rewrite ^(.*)$ $uri? permanent; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment