![Si4351233](https://vmapp.org/images/player/000default.jpg)
: Mod Rewrite - url rewriting I am very new to mod rewrite. I need to redirect any user with "citzenhawk" parameter in their url to my url for example http://www.mywebsite.com/?sc=CX12N003&cm_mmc=affiliate--citizenhawk--noo
I am very new to mod rewrite. I need to redirect any user with "citzenhawk" parameter in their url to my url
for example
www.mywebsite.com/?sc=CX12N003&cm_mmc=affiliate--citizenhawk--nooffer-_-na&prfc=5&clickid=0004c845fa9a87050a4277221a003262
should result into
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?
More posts by @Si4351233
1 Comments
Sorted by latest first Latest Oldest Best
Try this:
RewriteCond %{QUERY_STRING} cm_mmc=(.*)citizenhawk
RewriteRule ^.* /rrs? [R=permanent]
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.