NGINX mangling rewrites when encoded URLs present

Bob Smith b631093f-779b-4d67-9ffe-5f6d5b1d3f8a at
Sat May 5 11:21:21 UTC 2018

nginx version: nginx/1.13.12

This is my rewrite:
    location / {
        rewrite  ^/(.*)$$1 permanent;

I am getting some really odd behavior.

For example:

Gets re-written to

Only one forward-slash, not two before  The original declaration was %2F%2F ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list