My website is available in two languages: dutch and english. The website has the dutch tld: http://www.example.nl.
The homepage does two things:
- Display the dutch version of the website for dutch visitors
- Redirect to http://www.example.nl/en for all other international visitors.
Normally I would do something like this in my html head:
<link rel="alternate" href="http://www.example.nl/en/page/a" hreflang="en" />
<link rel="alternate" href="http://www.example.nl/page/a" hreflang="nl" />
<link rel="alternate" href="http://www.example.nl/page/a" hreflang="x-default" />
But because the main page (without the language parameter) is redirecting for international users AND is giving the website for dutch visitors as well, I don't know how to set it correctly.
Normally I have a /nl page and a /en page, and a / page that does the redirects, but now I merge the /nl page with the root domain.
How to set the hreflang tags? And the x-default? Should I set the x-default at all?