Redirect rule to delete Category slug - is it possible?

alessio98

Registered Member
Joined
Jul 21, 2018
Messages
64
Reaction score
16
Hi, i'm using a Prestashop ecommerce, i have to change my permalink structure from www.root.com/category/product to www.root.com/product

I can change the option in order to create the product pages, but how can I handle redirects? I have 3000+ products, i cannot do it manually.

I need to redirect all, how can I do it?

Thanks!
 
Do you have all those product URLs? If yes, then you can use a redirection plugin.
If no, then you need to extract URLs from sitemap maybe.
 
Do you have all those product URLs? If yes, then you can use a redirection plugin.
If no, then you need to extract URLs from sitemap maybe.

I would have to do it manually? I cannot do for 3000 urls.

Is not possible to write rule for each category like that
RewriteRule ^(.)/(.)$ /$2 [R=301,L]

(that rule doesn't work)
 
I got redirected automatically while using category in URL,
I'm using Yoast with removing category URL as well as %postname% in permalinks
1618450761942.png


hope this helps!
 
Back
Top