title: Apache Mod Rewrite not redirecting on Empty URI
body: <p>Lets say I have a domain <a href="http://www.foobar.com" rel="nofollow">http://www.foobar.com</a></p>
  
  <p>underneath this document root are two directories:  foo &amp; bar</p>
  
  <p>I wanted to create a rewrite rule so that anyone just going to <a href="http://www.foobar.com" rel="nofollow">http://www.foobar.com</a> is redirected to <a href="http://www.foobar.com/foo" rel="nofollow">http://www.foobar.com/foo</a></p>
  
  <p>but it would leave anyone going to all other real directories alone.</p>
  
  <p>so for example:</p>
  
  <pre><code>http://www.foobar.com -&gt; http://www.foobar.com/foo
  http://www.foobar.com/bar -&gt; http://www.foobar.com/bar
  </code></pre>
  
  <p>I would think having something like this:</p>
  
  <pre><code>RewriteEngine On
  RewriteRule ^$  foo/ [L]
  </code></pre>
  
  <p>would work but it doesnt</p>
  
  <p>any help here?</p>