title: Apply rewrite rule if url not contains certain path
body: <p>i've written this rewrite rule for my AngularJs application that use html5 routing.</p>
  
  <p>The rewrite url is this:</p>
  
  <pre><code> RewriteEngine On
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteCond %{REQUEST_URI} !^.*\.(jpg|css|js|gif|png|html|woff)$
   RewriteRule ^ index.html  [L]
  </code></pre>
  
  <p>I want that all the URL that contains path <strong>/old/</strong> and with path <strong>/images/</strong> aren't rewritten!</p>
  
  <p>Someone can help me i tried to add rewrite condition like this :</p>
  
  <pre><code> RewriteCond %{REQUEST_URI} !^/old/
  </code></pre>
  
  <p>But it doesn't work!</p>
  
  <p>Regards,
  Lorenzo</p>
  
  <p><strong>UPDATE</strong> </p>
  
  <p>If you're using AngularJS with routing use target="_self" on <code>&lt;a&gt;</code> element that has link in the same domain but aren't under the angular routing!</p>