title: htaccess-rewriting, but excluding sub-directory
body: <p>I have a general rewrite-rule in my sites root which looks like this:</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^([\w]+)/?([\w]+)? index.php?action=$1
  </code></pre>
  
  <p>which works fine for rewriting URLs like "www.example.com/myAction" to "www.example.com/index.php?action=myAction"</p>
  
  <p>This must stay like this, but I need to exclude a subdirectory ("/login") from rewriting.</p>
  
  <p>So I tried:</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_URI} !^/login/
  RewriteRule ^([\w]+)/?([\w]+)? index.php?action=$1
  </code></pre>
  
  <p>but still no luck. I've read several answers here on SO but can't find the flaw. Any ideas? Thank you!</p>