title: htaccess ignore directory and subdirectories of existing folder
body: <p>I have the following structure</p>
  <pre><code>- .htaccess
  - cms
  - other_cms
  -- xyz
  </code></pre>
  <p>In the <code>.htaccess</code> I have a lot of rewrite rules which I want to ignore for <code>/other_cms</code>.</p>
  <p>I added the following on top of my .htaccess</p>
  <pre><code>RewriteEngine On
  RewriteRule ^other_cms/ - [L]
  RewriteRule ^other_cms/test/ - [L]
  RewriteRule ^other_cms(/.*)?$ - [L,NC]
      
  RewriteCond %{REQUEST_URI} ^other_cms/(.*)$
  RewriteRule ^.*$ - [L]
  </code></pre>
  <p>My goal is that every subdirectory of <code>/other_cms</code> (no matter if it really exists or not) and <code>/other_cms</code> itself is ignored by this <code>.htaccess</code> file in the root.</p>
  <p>I also tried to add a condition to every rule:</p>
  <pre><code>RewriteCond %{REQUEST_URI} !^other_cms(/.*|)$
  </code></pre>
  <p>When I open <code>/other_cms/test</code> it still calls all rules and the 404 of the <code>/cms</code> is applied.</p>
  <p>I have added an .htaccess file to <code>/other_cms</code> including <code>RewriteEngine Off</code> but I suppose this is never read.</p>
  <p>What am I doing wrong?</p>