htaccess Redirection with URL param

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

# protection for xmlrpc.php (by Roy)
RewriteCond %{REQUEST_URI} ^.*(xmlrpc\.php)$
RewriteCond %{HTTP_USER_AGENT} !^(.*Jetpack.*)$
RewriteRule ^(.*)$ - [F]

Options +FollowSymLinks
RewriteEngine On
RedirectMatch 301 /product/(.*) https://example.com/shop/product/$1
RedirectMatch 301 /subfolder https://example.com/