title: NGINX redirect with query strings getting ignored
body: <p>I'm adding around 30 redirects, 90% of them are straight forward URLs, however there's a few that have query strings e.g.</p>
  <pre><code>.com/?page_id=2966
  .com/?page_id=2965
  .com/?page_id=2964
  </code></pre>
  <p>All the other redirects work fine, however none of these ones work using the following rewrite rule:</p>
  <pre><code>rewrite ^/?page_id=2966$ /sustainable-travel? permanent;
  rewrite ^/?page_id=2965$ /car-sharing? permanent;
  rewrite ^/?page_id=2964$ /eco-driving? permanent;
  </code></pre>
  <p>We've reloaded and restarted the server without any luck - Is there something special we should be doing in a config to capture these?</p>
  <p>Thanks</p>