This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is trying to generate separate sitemaps for each language on their site using WPML Multilingual CMS, WPML String Translation, and Yoast SEO, with the URL format set to different languages in directories. However, they encountered an issue where all URLs for every language are combined into a single sitemap, and duplicate URLs appear in the page-sitemap.xml.
Solution:
We explained that the current setup with WPML and Yoast SEO inherently generates one sitemap for all languages, which includes URLs from all languages. To achieve separate sitemaps for each language, the client would need to switch to the domain per language mode. This setup allows for individual sitemaps per language domain. For more details on how to implement this, we recommend visiting the following documentation:
If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please do not hesitate to open a new support ticket at WPML support forum.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.