Mod Rewrite - url rewriting
Posted
by
modrewriteNewbie
on Pro Webmasters
See other posts from Pro Webmasters
or by modrewriteNewbie
Published on 2012-08-29T16:59:06Z
Indexed on
2012/08/29
21:51 UTC
Read the original article
Hit count: 366
mod-rewrite
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--nooffer-_-na&prfc=5&clickid=0004c845fa9a87050a4277221a003262
should result into
http://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?
© Pro Webmasters or respective owner