Sitemap issue with Polylang
-
The language version of sitemaps is not accessible via
domain.com/lang_slug/sitemap.xml, if “The front page URL contains the language code instead of the page name or page id” -setting is not enabled in Polylang Pro. This settings controls whether the frontpage is located indomain.com/lang_slug/or indomain.com/lang_slug/page-title/.If the url of frontpage is
domain.com/lang_slug/page-title/then the sitemap can be found indomain.com/lang_slug/page-title/sitemap.xml. Yet thedomain.com/lang_slug/sitemap.xmlis advertised in robots.txt:Sitemap: https://domain.com/sitemap.xml Sitemap: https://domain.com/lang_slug/sitemap.xmlI tested the issue both with Polylang Pro and Polylang You can replicate the issue by creating a new site with two languages. I have following settings in Polylang
- The language is set from the directory name in pretty permalinks
- Hide URL language information for default language
- Remove /language/ in pretty permalinks
The topic ‘Sitemap issue with Polylang’ is closed to new replies.