Nginx Redirect - Remove a specific query parameter from URL
08:40 15 Oct 2014

Let's say I have a URL such as:

http://www.example.com/something.html?abc=one&def=two&unwanted=three

I would like to remove the URL parameter unwanted and keep the rest of the URL in tact and it should look like:

http://www.example.com/something.html?abc=one&def=two

This specific parameter can be anywhere in the URL with respect to other parameters. The redirect should work regardless.

Can this be achieved?

http-redirect nginx