I set redirects with the netlify.toml and using a cookie to define the country code (nf_country
).
The redirects work, but with your second visit within the session. The first visit returns 404 (this page doesn’t exists). Unfortunately, it has an impact on our SEO results. The URL returns 404 in the SEO crawlers instead of the redirected site.
test example:
[[redirects]]
from = "/angstpatienten/"
to = "https://<here_is_my_original_domain>.es"
status = 301
force = true
conditions = {Country = ["ES"]}