Good day. Help make a redirect to .html files.
How to do what if we enter mysite/product.php?id_product=N worked redirect to mysite/N-product-name.html , where N is the product ID; Does the future product name change? Example: mysite/N-platbe-zelenoe.html , mysite/N-tovar-krossovki.html .
Now it works like this: if we enter mysite/product.php?id_product=N , then it is redirected to mysite/my-product-name.html :
RewriteCond %{QUERY_STRING} ^id_product=(.*)$ [NC] RewriteRule ^(.*)$ http://mysite/10005966-product-name.html? [R=301,L]