title: How would I write an if - elseif - elseif conditional block in an .htaccess file?
body: <p>This is what I want to accomplish in pseudocode:</p>
  
  <pre><code>if server.host equals 'productionsite.com' then
    RewriteBase /
  else if server.host equals 'stagingsite.com' then
    RewriteBase /staging/mysite
  else if server.host equals 'localhost' or server.host equals '127.0.0.1' then
    Rewrite /dev/mysite
  </code></pre>
  
  <p>However, this is what I actually have so far which doesn't seem to work as I expect:</p>
  
  <pre><code>RewriteCond %{HTTP_HOST} =productionsite.com
  RewriteBase /
  
  RewriteCond %{HTTP_HOST} =stagingsite.com
  RewriteBase /staging/mysite
  
  RewriteCond %{HTTP_HOST} =localhost
  RewriteBase /dev/mysite
  </code></pre>
  
  <p>I appreciate any help I can get in advance.</p>