Hello,
We apologize for the issue you are facing with your sitemap index. It seems that the posts, pages, and products are not being included in your sitemap. Here are a few things you can check to resolve this issue:
-
Check Sitemap Settings: Ensure that your posts and pages are not excluded from the sitemap settings in Rank Math. You can do this by navigating to Rank Math SEO → Sitemap Settings and checking the Exclude Posts and Exclude Terms sections.

-
Ensure Pages Are Set to Index: Make sure that the posts and pages you want to include in the sitemap are set to index in the robots meta tag. You can check this by editing the specific post or page and going to the Rank Math SEO → Advanced tab.

-
Include Empty Terms: If you have empty category or tag archive pages, they may be excluded by default. To include these pages, enable the Include Empty Terms option in your category/tag/custom taxonomy archive settings under Rank Math SEO → Sitemap Settings.

-
Caching Issues: Sometimes, caching can prevent updates from appearing in your sitemap. You can exclude the sitemaps from caching by adding a filter to your theme’s rank-math.php
file:
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
If you have checked all these settings and the issue persists, please reply to this ticket with any additional details or specific settings you have configured, and a human agent from our support team will assist you further.
Thank you for bringing this concern to our attention!
Sources:
Why Isn’t My URL Included in the Sitemap? » Rank Math
This is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.
The sitemap index currently only displays the category sitemap (product_cat-sitemap.xml).
Other sitemaps, such as products (product-sitemap1.xml) and pages (page-sitemap.xml), exist and work correctly if accessed directly, but they do not appear in the sitemap index.
Hello,
Please share the correct sitemap link so we can check as well.
Meanwhile, head over to your website files /uploads/rankmath/, and delete any XML files from that path.
Then, 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/
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/
Looking forward to helping you.