Remove query parameter

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


Hi!

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.


Ole




More information about the nginx mailing list