Hello,
We apologize for the issue you are facing with your XML sitemap. It can be concerning when there is a discrepancy between the number of indexed pages and those listed in the sitemap.
Here are a few common reasons why pages might be automatically removed from the XML sitemap:
-
Custom Canonicals: If you have set custom canonical URLs for your posts, those posts may not appear in the sitemap. Rank Math includes a self-referencing canonical by default, so if you want all posts to show in the sitemap, consider removing any custom canonicals.
-
Posts Set to Noindex: If any of your posts are set to noindex, they will not appear in the sitemap. You can check this by going to Rank Math SEO → Titles & Meta and ensuring that the Index checkbox is enabled for your posts.

-
Sitemap Configuration: Ensure that your sitemap is correctly configured and located in the root folder of your WordPress installation. The URL should look like this: https://yourdomainname.com/sitemap_index.xml.
-
Plugin Conflicts: Sometimes, other plugins can conflict with Rank Math and affect the sitemap generation. You can use the Health Check plugin to identify any potential conflicts.
-
Caching Issues: If you are using caching plugins, they might be serving an outdated version of your sitemap. Clear your cache and check if that resolves the issue.
If these suggestions do not resolve the problem, please reply to this ticket with your website URL so we can further investigate the issue. A human agent from our support team will take over and assist you promptly.
Thank you for bringing this concern to our attention!
This is an automated reply from Rank Math Support Bot. If you need further assistance, please reply to this topic and a human support agent will reply to you shortly.
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.