I cannot for the life of me figure out how to form this rule... I need to change this link: to thanks a ton in advance, I am a rewrite noob! This is what I have so far, but it does nothing (doesn't redirect anything) or
That code didn't work, so I changed it to RewriteRule ^?ref=(.*)$ http://www.cash.refstocash.com/?ref=$1 [R=301,L] because there is no index.php present in the links, it is just a ?ref=## My second rule now gives me an internal server error
I solved it with this: Options +FollowSymLinks RewriteEngine On RewriteCond %{QUERY_STRING} ^(.*&)?r=[0-9]+(&.*)?$ [NC] RewriteRule ^$ http://www.main.domain.com/ [R=301,L]