Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
Please follow this guide to fix the incorrect homepage URL of your secondary languages in the sitemap: https://rankmath.com/kb/multilingual-seo-wpml/#num-11-1-rankmath-seo-adds-incorrect-entries-for-translated-homepages-in-the-sitemap
Let us know how it goes. Looking forward to helping you.
Thank you.
Hey there,
thank you for your quick response. Unfortunately the code didnt seem to work, the url is still there. Could you further elaborate what it does or is there another solution? 🙂
Best regards
Hello,
The code in our guide is used to update the correct translated home URL in the sitemaps.
If it’s still not working, please install and activate the WPML SEO glue plugin (if not yet). You can check this article for how to do that: https://wpml.org/compatibility/2021/04/wpml-seo-plugin-better-integration-with-seo-plugins/
If the issue still persists, please follow these steps to flush your sitemap cache:
1. Flush the Sitemap cache by following this video screencast:
https://i.rankmath.com/pipRDp
2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
https://rankmath.com/kb/exclude-sitemaps-from-caching/
If the issue still persists, please try adding this filter to your active theme’s functions.php file:
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
Let us know how this goes.
Thank you.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.