title: How to redirect all subdirectories to the domain's root?
body: <p>I have a domain with multiple domains parked on it.<br>
  What I need to do is to redirect every traffic from subdirectories to root path.<br>
  for example my domain is <code>example.com</code> when the visitor lands on a subdirectory I want him to be redirected to the root. like this:</p>
  
  <pre><code>http://example.com/foo ==&gt; http://example.com
  </code></pre>
  
  <p>and also consider the part about parked domains.</p>
  
  <pre><code>http://bar.com/foo == &gt; http://bar.com (parked on example.com)
  </code></pre>