Hello!
I can’t figure it out, I manage to configure the rule, if the country, for example: France, then there should be a redirect from all pages of example.com/category on example.fr/category.
I only managed to establish a redirect on the country on the domain itself without categories and all pages.