title: .htaccess redirect loop! All subdirectories to root
body: <p>I'm trying to redirect all subdirectories to the root of my website via .htaccess!
  The code below works fine if I try to access a subdirectory ... but doesn't let me display the index page in the root because starts a loop of redirects!</p>
  
  <pre><code>RedirectMatch temp ^/.*$ http://localhost/
  </code></pre>
  
  <p>How can I solve this?</p>