XML Sitemaps translations break protocol
-
Hi,
Polylang adds translation sitemaps to the XML Sitemap index like this:
https:/doma.in/wp-sitemap-posts-post-1.xml https:/doma.in/fr/wp-sitemap-posts-post-1.xml https:/doma.in/wp-sitemap-posts-page-1.xml https:/doma.in/fr/wp-sitemap-posts-page-1.xml
This is OK as long as The language is set from content under Languages > Settings > URL modifications is not used. But when that option is set, then posts and pages in their respective translation sitemaps, will not be within the location scope of that sitemap anymore.
In the above example, the sitemap https:/doma.in/fr/wp-sitemap-posts-page-1.xml might be listing a french “about” page like https:/doma.in/a-propos/ which does not fall under the /fr/ directory.
Read the specs on https://www.sitemaps.org/protocol.html#location
Please fix ??
Suggestion: just include all languages in the main sitemaps, there is no need to create sitemaps per language at all…
- The topic ‘XML Sitemaps translations break protocol’ is closed to new replies.