rewrite rule with ? in url

extremecarver nginx-forum at
Tue Apr 28 08:21:50 UTC 2015

Hi - I've got a plugin which was misconfigured - and now I need to rewrite a
string - however I cannot find out at all how to do this for urls with ? in

So I need to have:
rewritten to
(note the /de missing).

I tried:
server { server_name
 		return 301

but this is not accepted as valid nginx.conf...

So I need this rewritten and it is important that whatever string is
following this is not lost...

(also - but less important) - how can I rewrite a specific url?
So I want to rewrite
- but only if it is exactly this url. as well as* is not allowed to be rewritten...

Posted at Nginx Forum:,258420,258420#msg-258420

More information about the nginx mailing list