Mobile app version of vmapp.org
Login or Join
Si4351233

: 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

@Si4351233

Posted in: #ModRewrite

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Si4351233

1 Comments

Sorted by latest first Latest Oldest Best

 

@LarsenBagley505

Try this:

RewriteCond %{QUERY_STRING} cm_mmc=(.*)citizenhawk
RewriteRule ^.* /rrs? [R=permanent]

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme