e
looking for c0nw0nk.
From: nginx on behalf of Zhang Chao
Reply-To: "nginx@nginx.org"
Date: Tuesday, 8 August 2017 at 16.07
To: "nginx@nginx.org"
Subject: Re: Get rid of args from $request_uri
On 8 August 2017 at 22:02:32, chilly_bang
(nginx-fo...@f
On 8 August 2017 at 22:02:32, chilly_bang (nginx-fo...@forum.nginx.org)
wrote:
c0nw0nk Wrote:
---
> why don't you use
>
> $uri
Is it not so, that $uri will output an encoded url?
$uri is always the one decode once time and merge the slash(if y
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 maili
why don't you use
$uri $is_args $args
This will build the URL like.
index.php ? arguement=value&moreargs=morevalue
$request_uri will always output the full URL. Not individual segments of
it.
If you want the first part of the url only just use $uri on its own.
http://nginx.org/en/docs/http/n
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 count