title: Why does $args or $query_string not include the query parameters after &?
body: <p>I am trying to set up an nginx rewrite rule to modify the URL with query request. </p>
  
  <p>E.g.:</p>
  
  <pre><code>www.abc.com/pathA/pathB/script.pl?paraA=10&amp;paraB=20
  </code></pre>
  
  <p>should be rewritten to:</p>
  
  <pre><code>www.abc.com/pathA/pathB/script.pl.1020
  </code></pre>
  
  <p>I try to use variable <code>$args</code> or <code>$query_string</code> (based on the nginx documentation they are the same) to check whether the URL has a query request. But I found <code>$args</code> (or <code>$query_string</code>) only has the contents before <code>&amp;</code>.</p>
  
  <p>In my example, it means <code>$args = paraA=10</code>. I can't get the parameter contents after <code>&amp;</code>. I determine this through the nginx error log with the level set to debug.</p>
  
  <p>Any idea why I can't get the query parameters after <code>&amp;</code> in variable <code>$args</code> or <code>$query_string</code>?</p>