Hello people, I have a many backlinks to my dynamic pages and I need to redirect that pages to new ones because of SEO. Anyway my urls now looks like this: http://www.example.com/448/Product-Name.html And this is the code for this #makes /80/Product-Name.html RewriteRule ^([^/]*)/([^/]*)\.html$ product.php?id=$1&title=$2 [L] Now I want to redirect all urls to the: http://www.example.com/products/448/Product-Name.html Can anyone help me!?
I am not an expert for htaccess, but you could try this (with your own correct values of course) Rewrite engine on RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /488/product\.php\ HTTP/ RewriteRule ^index\.php$ http://www.example.com/448/Product-Name.html[R=301,L]