Hello,
We’re sorry to hear about the issue you’re facing with the translated languages still appearing in the XML sitemap after removing the TranslatePress plugin. To remove these URLs, you can follow these steps:
- Visit your sitemap index at yoursite.com/sitemap_index.xml.
- Once done, navigate to yoursite.com/post-sitemap.xml or yoursite.com/page-sitemap.xml.
You should see all of your multilingual posts or pages included in the sitemap that Rank Math created for you. If you’re still seeing the translated languages in the sitemap, please ensure that the TranslatePress plugin has been completely removed from your website.
If the issue persists, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further.
Thank you for bringing this to our attention!
Sources:
How to Perform SEO for Multiple Languages Using Rank Math and TranslatePress » Rank Math
Remove Blank Lines From Sitemaps » Rank Math
Multilingual SEO with Rank Math SEO & WPML » Rank Math
Troubleshooting the “Couldn’t Fetch” Error in Google Search Console » Rank Math
Rank Math Sitemap Issues and Their Fixes » Rank Math
Hi,
Translated languages are still visibled :
https://vacancespleinair.fr/post-sitemap.xml
Thanks
Hello,
In this case, please follow the steps to flush the 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/
3. Disable the transient cache for the sitemap by applying this filter. This will make sure that your XML sitemap always reflects the latest changes on your site:
/**
* Filter if XML sitemap transient cache is enabled.
*
* @param boolean $unsigned Enable cache or not, defaults to true
*/
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
If you’re not sure how to add this code, you can follow this guide:
https://rankmath.com/kb/wordpress-hooks-actions-filters/
Let us know how this goes.
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.