title: Apache Mod Rewrite: RewriteRule with L argument. What's wrong?
body: <p>I'm developing a php application and I have a little issue with Apache and Mod Rewrite. Anyone knows what's wrong here?:</p>
  
  <pre><code>RewriteEngine on
  RewriteBase /mysite/
  RewriteRule ^css\/css\.css css/css.php [L]
  RewriteRule ^js\/js\.js js/js.php [L]
  RewriteRule !^img\/.* index.php
  </code></pre>
  
  <p>When I put <a href="http://localhost/css/css.css" rel="nofollow noreferrer">http://localhost/css/css.css</a> appears index.php, maybe I'm missing something...
  Why when the url matchs with the first rule apache doesn't stop the rewriting process?</p>
  
  <blockquote>
    <p>'last|L' (last rule)</p>
    
    <p>Stop the rewriting process here and
    don't apply any more rewriting rules.
    This corresponds to the Perl last
    command or the break command from the
    C language. Use this flag to prevent
    the currently rewritten URL from being
    rewritten further by following rules.
    For example, use it to rewrite the
    root-path URL ('/') to a real one,
    e.g., '/e/www/'.</p>
  </blockquote>
  
  <p>I have readed forums and docs since 3 hours and I still have the same problem.</p>
  
  <p>Thanks in advance.</p>