Remove query parameter

Ole Laursen olau at
Wed Jun 16 23:41:39 MSD 2010


Does anyone happen to have a snippet for removing a query parameter from the
query string?

I want to remove utm_source/gclid/... (added by Adwords and similar) from the
URL used on the server, changing for instance /shop/?gclid=blabla to /shop/, so
that nginx uses the cached version of /shop/ rather than generating a new page
via the proxy backend.


More information about the nginx mailing list