> rewrite ^/(.*)$ https://example.net/$1 permanent;
>
...
>
> Gets re-written to
>
> example.net/CLO/https:/apple.com
>
> Only one forward-slash, not two before apple.com. The original declaration
> was %2F%2F ?
It's probably because that way the $1 is/gets url-decoded and merge_
nginx version: nginx/1.13.12
This is my rewrite:
location / {
rewrite ^/(.*)$ https://example.net/$1 permanent;
}
I am getting some really odd behavior.
For example:
mysubdomain.example.com/CL0/https:%2F%2Fapple.com
Gets re-written to
example.net/CLO/https:/apple.com
Only o