title: Rewrite rule with query string
body: <p>Need a little help with rewrite rule.
  How do I redirect an url with query to another url with query?
  Example:</p>
  
  <pre><code>http://example.com/prject/test.php?key=1
  </code></pre>
  
  <p>redirect to</p>
  
  <pre><code>http://example.com/prject/test.php?id=1
  </code></pre>
  
  <p>Also </p>
  
  <pre><code>http://example.com/prject/file2.php?key=1
  </code></pre>
  
  <p>to</p>
  
  <pre><code>http://example.com/prject/file2.php?arg=1
  </code></pre>
  
  <p>.htaccess file is located in /project/ directory.</p>