title: How to add a rewrite condition to only pass URL's with one folder depth?
body: <p>I have a rewrite rule that needs to only be applied to urls that go no further in depth than 1 folder </p>
  
  <pre><code>example.com/a  &gt;&gt; rewrite me
  </code></pre>
  
  <p>AND NOT</p>
  
  <pre><code>example.com/a/b  &gt;&gt; don't rewrite me
  </code></pre>
  
  <p>So I only need to rewrite urls with a depth of 1. Greater depth is allowed but needs to go through unaltered.    </p>
  
  <p>How would i do that doing a Mod_Rewrite condition statement? And where can I have my personal rewrite rule written.
  Thank you!</p>