title: htaccess redirect all requestes to index.php except sub folder
body: <p>I have a CMS installed at the root of my domain with the following htaccess:</p>
  
  <pre><code>RewriteEngine On
  RewriteBase /
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
  </code></pre>
  
  <p>This takes care of friendly urls to redirect everything to index.php. My problem is that I have a sub-folder which has another cms. I need the requests to the sub-folder be redirected to the proper folder instead index.php.</p>
  
  <p>I tried the following but it doesn't seem to work</p>
  
  <pre><code>RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond $1 !^(sub-folder)
  RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
  </code></pre>
  
  <p>Can anyone help?</p>
  
  <p>Thanks</p>