title: Is it possible to capture a variable from an Apache RewriteCond pattern match?
body: <p>Using <code>mod_rewrite</code> I'd (ideally) like to capture a spacific ID from a URL in a variable from a <code>RewriteCond</code> pattern match for (e.g.)<br>
  <code>/index.php?option=com_content&amp;view=article&amp;id=984&amp;Itemid=131</code><br>
  to use it later in a <code>RewriteRule</code>.</p>
  
  <p>I don't have a problem writing the pattern, but can't find out if this is actually possible, despite <a href="http://httpd.apache.org/docs/current/mod/mod_rewrite.html" rel="nofollow">reading the</a> <a href="http://httpd.apache.org/docs/2.0/misc/rewriteguide.html" rel="nofollow">docs</a>. Has anyone else tried this or know it to be impossible?</p>
  
  <p>The site is built on Joomla 1.6 (which adds IDs to SEO-friendly URLs), and I'm trying to avoid the overhead of something like <a href="http://www.joomlager.de/hp-router" rel="nofollow">HP Router</a> just to change one particular group of URLs.</p>