Streaming live at 10am (PST)

Redirect: how to write correctly?

Hi!
Please tell me how to correctly write “redirect”?

I have two collections: categories and products.
From the URL I want to remove the word «category» and leave only the name of this category. For example: «www.lovko.com.ua/category/stilnici-opori» should be —> «www.lovko.com.ua/stilnici-opori»

And from the product URL I want to replace the word «product» with the name of the category name of this product. For example: «www.lovko.com.ua/product/stilnici-sosna-yasen-dub» should be —> «www.lovko.com.ua/stilnici-opori/stilnici-sosna-yasen-dub»

How exactly should I write redirects for categories and products?

This is a website: https://www.lovko.com.ua/
This is a project in Webflow: https://preview.webflow.com/preview/lovko?utm_medium=preview_link&utm_source=designer&utm_content=lovko&preview=89ccca5c11012d203a9c615770d3f19c&mode=preview