nginx rewrite or redirect that moves GET parameters at the end

Viewed 7

I have some faulty urls of this type

domain.net/some_param/?source=external_site/another_param

and these are creating a 404 error in my website.

What I need to do is to redirect the URL above as

domain.net/some_param/another_param/?source=external_site

moving the GET param at the end of the URI

Any ideas!?

0 Answers
Related