how to redirect a url to a secondary category?

Question

let me explain, I have this url

website.com/category1/category2/category3/postname

I would like to redirect you to the youngest or lowest category "category3"

let it be like this:

website/category3/postname

Is there any solution? thanks

0
Plantas y remedios Caseros 1 month 0 Answers 8 views 0

Leave an answer