I'm about to move my online store website from X-Cart to Wordpress Woocommerce. I need a 301 redirect to direct all the old product pages to the new ones so I don't lose out on SEO.
The old pages were www.mysite.com/product-with-11.5inch-something.html The new ones are www.mysite.com/product/product-with-11-5inch-something/
Basically all .html pages have any . in them replaced with a - and the .html dropped from the end of the URL. Then they now site in a /product/ folder.
Can anyone help me out with a rule to do all of these in one go in htaccess? I can put a single line in there with a 301 redirect but there are over 6000 products so will be a huge list!