title: Wrong path confuses apache?
body: <p>Using the following <code>RewriteCond</code> I want to have a rule for all files that are not images, css or js.</p>
  
  <pre><code>RewriteCond %{REQUEST_FILENAME} !\.(ico|jpg|jpeg|png|gif|js|css|svg|svgz)$
  </code></pre>
  
  <p>This rule works fine when the path to the file exists...</p>
  
  <p>But when the path to the file does not exist (wrong path was given) <strong>the rule continues even though the file ends with an extension from the list.</strong></p>
  
  <p>How do I include in the rule to include paths even if they do not exist?</p>
  
  <p><strong>Update:</strong></p>
  
  <p>The solution was using %{REQUEST_URI} instead of %{REQUEST_FILENAME}.</p>