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.
Tagged: Translating a plugin
|May 21, 2019 at 2:19 pm|
I just switched the primary language of a bi-lingual site.
Old primary language was EN, secondary DE. Now primary is DE, secondary EN.
Before switching primary languages there were two sitemaps, site.com/sitemap.xml and site.com/de/sitemap.xml. I never set it up that way, it just worked after installing WPML.
Now something weird is happening. Generating a sitemap creates site.com/sitemap.xml, and it includes only DE links (DE is the new primary language).
I thought to change languages in WP admin and generate another sitemap and that looks like it's trying to work because it produces a link to site.com/en/sitemap.xml, but then that file is a 404.
And, I noticed that if I change a sitemap setting while in EN, then save and regenerate the sitemap, the sitemap overwrites the existing DE-only sitemap with a new one, same URL site.com/sitemap.xml, but then the new one includes only EN links.
I don't care if there is one or two sitemaps, as long as all the site links included one way or another.
I've resaved permalinks after changing primary languages but that did not seem to help.
Thanks and kind regards,
|May 21, 2019 at 7:06 pm #3858395|
Languages: English (English ) Spanish (Español )
Timezone: Europe/Madrid (GMT+02:00)
Please follow this steps:
Could you tell me the result of the steps above?