Hello,
We apologize for the issue you are facing with your bilingual website’s sitemap. Thank you for raising this concern.
Since you are using Polylang with Rank Math, it’s important to ensure that the compatibility code is correctly implemented in your rank-math-ppl.php file. Additionally, please verify that the rank-math.php file is set up properly as well.
Here are a few steps you can take to troubleshoot the issue:
-
Check the Code: Ensure that the code you added to rank-math-ppl.php is correct and matches the latest version provided in our documentation. If you have an outdated version, it may not function as expected.
-
Clear Cache: If you have any caching plugins enabled, clear the cache to ensure that the latest changes are reflected in your sitemap.
-
Permalinks: Sometimes, simply re-saving your permalinks can help refresh the sitemap. Go to Settings > Permalinks in your WordPress dashboard and click Save Changes without making any modifications.
-
Sitemap Settings: Double-check your Rank Math settings to ensure that sitemaps are enabled and configured correctly for multilingual support.
If after following these steps the issue persists, please reply to this ticket, and a human agent from the Rank Math Support team will take over and assist you further.
Thank you for your patience, and we look forward to resolving this for you!
Sources:
How to Make Polylang Compatible With Rank Math
The bot says that the Rank Math settings need to be configured for multilingual support with polylang. However, I can’t find where it can be done.
Hello,
We’ve checked your page sitemap, and the main and /en/ URLs are already included.
Please clear your website and browser’s cache if they are still not appearing on your end.
Looking forward to helping you.
Hello,
yes, I know that the main and /en/ URLs are included. However, this is not a sitemap for a bilingual website. I would expect that Rank Math makes either two different sitemaps for the two languages, or that it indicates which pages correspond to each other.
It sounds like you’ve followed the setup instructions correctly. Ensure that your rank-math-ppl.php and rank-math.php files are correctly placed and configured. You might also try clearing your site cache and regenerating the sitemap from the Rank Math settings. If the issue persists, consider reaching out to Rank Math support for further assistance.
Hello,
Please note that Rank Math usually only handles adding the default language to your sitemap. Other languages are handled automatically by the translation plugin you use by adding a hreflang into each page automatically so that Google knows that it is a translated version of some other page.
It is not a must that you have the translated pages in your sitemap. This is perfectly fine and as per guidelines set by Google:
https://developers.google.com/search/docs/advanced/crawling/localized-versions
However, if you still want, you can follow this guide to create a custom sitemap: https://rankmath.com/kb/custom-sitemaps/
Hope that helps.
Thank you.
Hello,
We are glad to know that this issue has been resolved. Thank you for letting us know.
This ticket will be closed now, but you can always open a new one if you have any other questions or concerns. We are here to help you with anything related to Rank Math.
We appreciate your patience and cooperation throughout this process.
Thank you for choosing Rank Math.