Redirect all post into some category to url without category

I need to redirect about 200 post into category “ricette”,”svezzamento” and “alimentazione” to url without category. I have this code but not work.