title: How can I use SetEnvIf based on matches in the query string?
body: <p>The URL I'm using is, let's say, <code>example.com/subdir/index.php?foo=bar</code></p>
  
  <p>index.php contains this: <code>&lt;?php echo getenv("testenvvar"); ?&gt;</code></p>
  
  <p>I'm setting an enviroment variable in .htaccess like so:</p>
  
  <p><code>SetEnvIf Request_URI (index) TestEnv=Worked</code></p>
  
  <p>This prints "Worked".</p>
  
  <p>If I change it to <code>SetEnvIf Request_URI (bar) TestEnv=Worked</code>, it does not.</p>
  
  <p>How can I do this?</p>