Hello,
Currently we're working on a multi language DynamicWeb based website. We're having an issue with the language-websites -> domain setup and the resulting sitemap.xml though.
We're supporting 4 langauges on the website, so we have 4 language-websites:
English website (main)
- German website
- Dutch website
- French website
We've attached multiple domains to the different websites, for backwards compatibility purposes, but on the site we'de like to use just a single domain/url structure. The domain setup of the sites in DynamicWeb:
English website - ourdomain.eu, www.ourdomain.eu
- German website - ourdomain.eu, www.ourdomain.eu, ourgermandomain.de, www.ourgermandomain.de
- Dutch website - ourdomain.eu, www.ourdomain.eu, ourdutchdomain.nl, www.ourdutchdomain.nl
- French website - ourdomain.eu, www.ourdomain.eu, ourfrenchdomain.fr, www.ourfrenchdomain.fr
When navigating to the website using ourdomain.eu, it will show the French website (because it's the last in line?). That's not what we want. So we've implemented some custom redirection based on the user's browser language, redirecting to the most suitable version of the website e.g. ourdomain.eu/en-us, ourdomain.eu/de-de, ourdomain.eu/nl-nl, ourdomain.eu/fr-fr where the en-us version is default.
Then we've added some more custom redirection so that ourgermandomain.de will redirect to ourdomain.eu/de-de, ourdutchdomain.nl to ourdomain.eu/nl-nl and ourfrenchdomain.fr to ourdomain.eu/fr-fr.
So for users this is the proper experience.
Yet, when requesting the site's sitemap: ourdomain.eu/sitemap.xml, it only contains the sitemap of the French website (again, because it's the last in line?). This should return the sitemap contents of all website languages.
How can we achieve this?
Kind regards