Hello.
Due to migration to the new cms, it became necessary to redirect old URLs. When redirecting, it's enough to use part of the URL. For example, the necessary part of URL site.com/p3660664-shtangentsirkul-shts.html is only /p3660664-
Redirect 301 /p3660664-(.*) /index.php?route=product/product&path=530869&product_id=3660664
RewriteCond %{QUERY_STRING} ^route=product/product&path=530869&product_id=3660664$
RewriteRule ^index\.php /p3660664-shts-shtangentsirkul? [R=301,L]
Using this method, the result was not achieved. CMS - opencart.
What am I doing wrong and how do I fix it please ?
Thanks very much