title: RewriteRule that preserves GET parameters
body: <p>What is wrong with this rewrite rule?</p>
  
  <pre><code>RewriteRule ^api/(.+)$ api/index.php?url=$1 [L]
  </code></pre>
  
  <p>I simply want "index.php?url=" to be added after api/ and before the rest of the get parameters.</p>
  
  <pre><code>api/image/upload&amp;arg1=1&amp;text=lorem+ipsum
  </code></pre>
  
  <p>to</p>
  
  <pre><code>api/index.php?url=image/upload&amp;arg1=1&amp;text=lorem+ipsum
  </code></pre>
  
  <p>What is wrong with (.+) to get everything after api/?</p>