Redirect of all pages and domain for the country

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.

Thanks to all!

It sounds like an issue with the use of wildcards in the page rule, this may help

If not, share the rules here to get other eyes on them.