• 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…

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Sébastien SERRE

    (@sebastienserre)

    Hello Rolf,

    You reported this on our Polylang Pro helpdesk with another request. I’ve forgotten to confirm you an issue has been opened internally.
    This will be fixed in a future release.

    Thank you for your contribution and reports.

    Thread Starter Rolf Allard van Hagen

    (@ravanh)

    Hi Sébastien, excellent news! Thanks ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘XML Sitemaps translations break protocol’ is closed to new replies.