Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: why that rewrite rule enforces trailing slash

$
0
0
$1 at least has a slash.

map $request_uri $requri {
default $request_uri;
/ "";
}

[...]

rewrite ^(\/.*) https://example.com/ar$requri permanent;

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>