How can we make Smart Redirects

Hello there everyone.

I'm looking for safe way to change the URL structure of my cs-cart ecommerce.

Right now all products are in urls within this structure:

but I'm going to use the SEO plugin to change the structure to this:

Unfortunately changing the scructure doesn't automaticaly creates 301 redirects, what would be the ideal.

Does anyone know how can I make 301 redirects for the existing products URLs?

As also a Wordpress user, it is nice to mention that Wordpress has some nice plugins to help you do redirects and even find similar URLs and redirects to them, avoiding traffic loss. Since both systems are in PHP I wonder if there is a similar solution within CS-cart.