title: How do I escape question mark with nginx rewrite?
body: <p>Im bussy migrating my websites to nginx and I have a lot of rewrite rules that need to be converted, the only problem I'm experiencing is when I try to do something like this:</p>
  
  <pre><code>rewrite ^/media?(.*)$                   /in.php?id=$1                   last;
  </code></pre>
  
  <p>This causes php to read $1 ad the key of $_GET instead of it's value. Is there any way to change this behaviour without resorting to difficult location based methods? The reason I'm asking is because I have multiple query string based rewrites that need to be addressed.</p>