Hi all
There are a multitude of "Old URL to New URL" rewrite examples on the internet but I cannot find something that answers my question so I thought I would ask here.
I have URL's on my existing ecommerce website as such:
/products/main-category/sub-category/product-name-here
Via htaccess I would like to be able to 301 redirect those URL's to the following structure:
/product-name-here
In essence, completely remove all the URL elements except the Product Name.
I have thousands of products all created via CMS.
Is there a rewrite rule I could use that would allow me to achieve this?
Many Thanks for reading.
Doug