I have to do a redirect to another host if a certain parameter/value pair is in the querystring.
So far I have
RewriteCond %{REQUEST_URI}?%{QUERY_STRING} [&\?]abc=23&?
RewriteRule ^(.*)$ http://anotherserver.com/$1 [R,NC,L]
that works for /index.php?id=95&abc=23 and /index.php?abc=23&id=95 and /index.php?id=95&abc=23&bla=123 but it also matches /index.php?id=95&abc=234 for example.
I need a pattern that matches exactly abc=23, no matter where it occurs.
Any suggestions on this? :-)