title: Apache Rewrite Excluding Assets Directory
body: <p>I'm writing a mini-MVC application. App architecture:</p>
  
  <p>actions/
     templates/
       site/
       app/
     styles/
     images/
     scripts/</p>
  
  <p>So far, I've got a controller working properly, taking in all requests. However, javascript files are not being rendered properly in the browser; I'm getting a 404 Not Found when I try to load the file in the browser.</p>
  
  <p>Here is my current Directory config in a vhost file:</p>
  
  <pre><code>&lt;Directory "/path/to/apps/ecatalogue"&gt;
  DirectoryIndex index.php
  RewriteEngine On
  RewriteBase /apps/ecatalogue
  RewriteRule ^scripts/(.*) - [NC,L] &lt;--- Rule not working
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php [NC,L,QSA]
  &lt;/Directory&gt;
  </code></pre>
  
  <p>I can confirm everything else works; I just need apache to ignore anything in scripts so the file can be loaded normally without being processed by the controller.</p>
  
  <p>Your help is appreciated.</p>
  
  <p>Update I: Added Directory tag for sake of completion.</p>