Forum Moderators: phranque
[mysite.com...] --> [mysite.com...]
Any ideas?
Something like this will work. The "%1" in the RewriteRule back-references the value that matches inside the parentheses in the RewriteCond, so the variable "123" in your example is passed on to the new URL.
RewriteCond %{QUERY_STRING} (.*)
RewriteRule ^buy\.asp$ /buy.php?%1 [R=301,L]
HTH,
Jim