Now I'm doing a redirect with this code:
if ($args ~* "(utm_|gclid|fbclid)") {
rewrite ^(.*)$ $uri? permanent;
}
and it will redirect if these parameters are added. But how can I do the opposite? In order not to redirect with these parameters, but the condition was false
CodePudding user response:
According to docs, you can use a negative operator: !~*