title: How to reuse condition blocks on htaccess so I don't need to write it again for a new rule?
body: <p>I am writing a blog with Wordpress and I have a website with Codeigniter and both are on the same server. I am setting the routing for them and I have this rules on my <code>.htaccess</code> file</p>
  
  <pre><code>RewriteEngine on
  
  RewriteCond $1 !^(images|robots\.txt|styles)
  RewriteCond $1 !\.(ico|js|css|jpg|png|gif|html|ico?g)$
  
  RewriteCond %{REQUEST_URI} blog/
  RewriteRule ^(.*) blog/index.php [L]
  
  RewriteCond $1 !^(index\.php|images|robots\.txt|styles)
  RewriteCond $1 !\.(ico|js|css|jpg|png|gif|html|ico?g)$
  
  RewriteRule ^(.*)$ index.php/$1 [L]
  </code></pre>
  
  <p>But note that most of the conditions are the same, because I need practically the same for both rewritings.</p>
  
  <p>If I remove the second block of conditions and skip directly to the second <code>RewriteRule</code> I get a server error. Is it possible to group conditions for different rules (and eventually add some extra condition as I did with the first rule)?</p>