Get rid of args from $request_uri

2017-08-08 Thread chilly_bang
Hi I want to build a construction like location ~* { if ($args ~ *) { add_header Link "<$scheme://$http_host$request_uri>; rel=\"canonical\""; } } but need to get rid of argues from $request_uri. The goal is from any url with parameters to point with canonical auf non-parameter url

Re: Get rid of args from $request_uri

2017-08-08 Thread chilly_bang
c0nw0nk Wrote: --- > why don't you use > > $uri Is it not so, that $uri will output an encoded url? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,275930,275937#msg-275937 ___ nginx