title: SetEnvIf HTTP_HOST not working
body: <p>I can't get it work this part of .htaccess, the <code>IfDefine</code> never runs. What am I doing wrong, <code>setenvif</code> mod is enabled.</p>
  
  <pre><code>RewriteBase /
  
  SetEnvIf HTTP_HOST ^localhost$ local
  &lt;IfDefine local&gt;
    RewriteBase /codeigniter-app/
  &lt;/IfDefine&gt;
  
  SetEnvIf HTTP_HOST ^testing.alex.com$ testing
  &lt;IfDefine testing&gt;
      RewriteBase /app/
  &lt;/IfDefine&gt;
  </code></pre>
  
  <p>This is based on: <a href="https://stackoverflow.com/questions/2045897/with-mod-rewrite-can-i-specify-a-rewritebase-within-a-rewritecond">With mod_rewrite can I specify a RewriteBase within a RewriteCond?</a></p>
  
  <p><strong>Edit:</strong> 
  Any other way to accomplish the above?</p>