why should I use question mark ?

任晓磊 julyclyde at gmail.com
Fri Jul 6 14:44:15 UTC 2012

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20120706/12994393/attachment-0001.html>

More information about the nginx mailing list