I am very new to mod rewrite. I need to redirect any user with citzenhawk parameter in their url to my urlfor example http://www.mywebsite.com/?sc=CX12N003&cm_mmc=affiliate--citizenhawk--nooffer-_-na&prfc=5&clickid=0004c845fa9a87050a4277221a003262should result intohttp://www.mywebsite.com/Here are my rewrite conditions:RewriteCond %{QUERY_STRING} (&|^)cm_mmc=(.)citizenhawk(.)(&|$)$ RewriteRule ^/rrs/ [NC,R=302,L]Where am I going wrong? Is my RewriteCond wrong?
Mod Rewrite - url rewriting
mod rewrite
Try this:RewriteCond %{QUERY_STRING} cm_mmc=(.*)citizenhawkRewriteRule ^.* /rrs? [R=permanent]