title: Have some RewriteCond's affect multiple rules
body: <p>I have a website where various parts <a href="http://devzone.zend.com/node/view/id/70" rel="noreferrer">parse request URLs by themselves</a> and some don't (e.g. a vBulletin forum). The .htaccess I have to send requests to the appropriates scripts is:</p>
  
  <pre><code># wiki, shop, admin
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !(.*)\.js
  RewriteRule ^wiki/(.*)$ w/index.php?title=$1 [PT,L,QSA]
  RewriteRule ^wiki/*$ wiki/ [L,QSA]
  RewriteRule ^shop/ /shop/shop.php [NC,L]
  RewriteRule ^forum/admincp/pkr/ /forum/admincp/pkr/pkr.php [NC,L]
  </code></pre>
  
  <p>This doesn't work as I expected. I forgot that the rewrite conditions are only applied to the first rule that follows them. The question is <strong>How can I apply those <em>RewriteCond</em>itions to all those rules without having to copypaste them 4 times?</strong></p>
  
  <hr>
  
  <p>What goes wrong is this:</p>
  
  <ul>
  <li>/shop/example is rewritten to /shop/shop.php</li>
  <li><p>/shop/shop.php is then rewritten again to /shop/shop.php (read: we have an infinite loop). This would not happen if this condition was applied to that rewrite rule, because /shop/shop.php is an actual file:</p>
  
  <p>RewriteCond %{REQUEST_FILENAME} !-f</p></li>
  </ul>
  
  <p>So yeah...</p>