title: What is wrong with my rewrite rule to exclude directory?
body: <p>Root directory like this:</p>
  
  <pre><code>/index.php
  /App
  /Extend
  /PHPrpc
  ...
  </code></pre>
  
  <p>I want exclude sub directory <code>/Extend</code> and <code>/Phprpc</code> from the rules.</p>
  
  <p>The old .htaccess file like this:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      RewriteEngine on
  
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>The following is modified by me:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      RewriteEngine on
  
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^(Extend|PHPrpc) - [L]  #exclude directory
      RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>But I get 500 Internal Server Error.</p>
  
  <p>Any advise?</p>