I’m using Gatsby and have created a _redirects file with rules and it’s working fine. We have now added multi-language content and I want to redirect like:
If user is language=en and is on the german page (de), I want to redirect him to the english version instead. So:
/de/pricing
would redirect to
/en/pricing
I’m trying to do it like this but I’m seeing no effect of it.
/en/* /de/:splat 301 Language=de
/de/* /en/:splat 301 Language=en
This one for the root domain works fine though:
/ /de/ 301 Language=de
/ /en/ 301 Language=en
What might be the problem?