Ok, I have the following link http://www.subdomain.mysite.com/?itemID=65165654654 I need to redirect it through another site. http://www.othersite.com/65165654654?refid=store So I need to drop the ?itemID= and add another tag at the end. I tried to get it to work but just couldn't get all of the parameters right. Thank you in advance for your help.
Options +FollowSymLinks +Indexes RewriteEngine on RewriteBase / RewriteRule ^index.php?itemID=(.*)$ http://www.domain.com/$1?refid=store [R=301,L]