I need to configure my reverse proxy so that the following parameter will be added at the end of the url:
This almost works:
rewrite ^(.*)$ $1&locale=de-de break;
However, the problem is that I need to append '&locale=de-de' only if it isn't already there and if there is a '?' in the url...
Can I get some help on formulating the correct regex to do this?
Why is the question mark in my url not shown if I use this:
Or $uri$is_args$args translates the url not encoded and the question mark is show as %3f.
EDIT: It seems that this behaviour exists while using in combination with proxy_pass. In a simple rewrite it works really well.