title: .htaccess : redirect everything except a few folders
body: <p>i have this problem:
  I have an .htaccess file witch rewrites all my url's to index.php
  i have an exception for a few folders.</p>
  
  <p>THis words fine, but when a file doesn't exist in one of this folders he still does the rewrite. But he may not doe that.</p>
  
  <p>How can i fix this problem?</p>
  
  <p>My code :</p>
  
  <pre><code>RewriteEngine On
  
  RewriteRule ^(templates|images)/ - [L]
  
  RewriteRule ^(favicon\.ico) - [L]
  
  RewriteCond %{REQUEST_FILENAME} !-f 
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-l
  RewriteRule .* index.php [L]
  </code></pre>