Welcome! Log In Create A New Profile

Advanced

why should I use question mark ?

任晓磊
July 06, 2012 10:46AM
I want rewrite a uri to itself without querystring, I tried
rewrite .+ $uri permanent;
but it rewrite to the original uri, with querystring unstripped.

After googled, I try
rewrite .+ $uri? permanent;
and it works correctly.

But why?

--
冷静认真,稳定运行;随时候命,宠辱不惊
from iPad2 3G_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

why should I use question mark ?

任晓磊 July 06, 2012 10:46AM

Re: why should I use question mark ?

Maxim Dounin July 06, 2012 12:24PM

Re: why should I use question mark ?

任晓磊 July 06, 2012 08:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 191
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready