Using mod_rewrite I’d (ideally) like to capture a spacific ID from a URL in a variable from a RewriteCond pattern match for (e.g.)
/index.php?option=com_content&view=article&id=984&Itemid=131
to use it later in a RewriteRule.
I don’t have a problem writing the pattern, but can’t find out if this is actually possible, despite reading the docs. Has anyone else tried this or know it to be impossible?
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 HP Router just to change one particular group of URLs.
The following should work. You can use a
%sign to access the groups from theRewriteCondHope this helps.