Hi all
It's about a couple of hours that I'm really scratching my head on the wall trying to understand how to pass a backreference to the rewrited URL where more that one RewriteCond exist.
A quick example just to let you understand what I want to achieve
RewriteCond %{HTTP_HOST} ^(www\.)?test\.(.*)(\.|\.?:[0-9]+)?$ [NC]
RewriteCond $1^(beauty_eyes|beauty_eyes_definer)$
RewriteRule ^/[^/]+/[^/.]+/[^/.]+/(.*)$http://%2.test.com/store/beauty-fragrance/eyes[L]
If I do something like above, the rewritelog I create let me see that the %2 doesn't contain anything
However, if I remove the second RewriteCond and leave something like this
RewriteCond %{HTTP_HOST} ^(www\.)?test\.(.*)(\.|\.?:[0-9]+)?$ [NC]
RewriteRule ^/[^/]+/[^/.]+/[^/.]+/(.*)$http://%2.test.com/store/beauty-fragrance/eyes[L]
Everything works fine, well at least the %2 contains a value, but I wish I could use the first example because I have more than one value ($1) that must be checked.
Is this possible?
Many thanks