Hi, i try setup redirects in netlify.toml
, but have some problems.
Expected behaviour:
- user with any browser language must be redirected to english version
.com/en/
- user with “ru” browser language must be redirected to
.com/ru/
Current behaviour:
- All users redirected to
/en/
My netlify.toml
(I inserted it whole so that there is more information):
[[redirects]]
from = "/register"
to = "https://domain.tld/register"
[[redirects]]
from = "/login"
to = "https://domain.tld/login"
[[redirects]]
from = "/"
to = "/ru/"
conditions = {Language = ["ru"]}
[[redirects]]
from = "/"
to = "/en/"
PS. I tried setup redirects within _redirects
file but it not worked at all