why should I use question mark ?

任晓磊 julyclyde at gmail.com
Sat Jul 7 00:39:48 UTC 2012


On 2012-7-7, at 0:23, Maxim Dounin <mdounin at mdounin.ru> wrote:

> Hello!
> 
> Because it's how it's expected to work.  By default the "rewrite" 
> directive preserves query string, and even if you write arguments 
> in a replacement string - they are added before original query 
> string which is still preserved.  Trailing question mark is an 
> explicit flag that you don't want to preserve query string.
> 
> http://nginx.org/r/rewrite
> 
Thank you. I was too careless to look though the wiki.



More information about the nginx mailing list