Help with 301 redirect of dynamic links

Hi,

I need some help with the syntax in making 301 redirects for individual links from a non cs-cart to my cs cart.



This redirect does work and many of my links are similar.



RewriteEngine on

RewriteCond %{QUERY_STRING} ^CMD=011&PROD=104$

RewriteRule ^Qstore/Qstore.cgi$ [url]http://ldomain/ink_in_my_cs-cart.html?[/url] [R=301,L]



This type of link I can’t get to work, and all may pages also have urls that look like this:

[url]CURRENTSITE.COM

I tried this and it does not work.

RewriteEngine on

RewriteCond %{QUERY_STRING} ^CMD=011&PROD=104&PNAME=name+of+aproduct+on+oldsite$

RewriteRule ^Qstore/Qstore.cgi$ [url]http://domain/pageincscart?[/url] {R=301,L}



Does anyone know the syntax for the second scenario? I am going to make a rule for each url.

Thanks,

Bob