title: Why does the htaccess rewritecond using %{query_string} only work when the URL contains index.php?
body: <p>I have an htaccess redirect like so:</p>
  
  <pre><code>RewriteCond %{QUERY_STRING} tabid=53
  RewriteRule . http://www.example.com/foobar? [R=301,L]
  </code></pre>
  
  <p>So, when I visit <code>example.com/?tabid=53</code> nothing happens, <code>example.com/index.php?tabid=53</code> gets redirected to <code>/foobar</code>. When I add another condition:</p>
  
  <pre><code>RewriteCond %{REQUEST_URI} ^(.*)$
  </code></pre>
  
  <p>nothing will change, from my understanding this should say "does not matter if there is index.php or not in the uri". What am I doing wrong?</p>