Hello,
I’m sorry to hear that you’re experiencing issues with your category sitemap. It seems like you’ve already taken several steps to resolve the issue, including excluding it from caching and adding the necessary rewrite rules to your .htaccess file.
If you’re still facing problems with your category sitemap not being created, I’d recommend checking if the category/tag/custom taxonomy archive pages have any posts attached. Empty archive pages with no posts attached are excluded by default, as they hold thin content.
To include these pages in your sitemap, navigate to Rank Math SEO → Sitemap Settings and enable the Include Empty Terms option in your category/tag/custom taxonomy archive settings.
If you’re still encountering issues, please ensure that your sitemap is accessible using a tool like httpstatus.io. Enter your sitemap URL and check the status to identify any issues preventing your sitemap from being accessed by the Googlebot.
If the issue persists, please feel free to assign this ticket to a human agent for further assistance. Thank you for bringing this to our attention.
Sources:
Why Isn’t My URL Included in the Sitemap? » Rank Math
Why the Sitemap_Index.xml is Throwing a 404 Error » Rank Math
Rank Math Sitemap Issues and Their Fixes » Rank Math
Indexed, Not Submitted in Sitemap – Google Search Console » Rank Math
Actually, Rank math is not creating the category sitemap. All my categories have index tag and they have posts in them. My page and posts sitemap is working fine
Hello,
We are super happy that your issue has been resolved.
If you have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.
Hello
I also have the same problem in the sitemap and my product categories receive a 404 error.
How did you solve the problem?
Hello @parhantechmarketing,
Thank you for reaching out to us and we apologize for the inconvenience.
Please try following the steps below:
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. Apply the following filter code to your site.
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
Here’s how you can add filter to your WordPress site:https://rankmath.com/kb/wordpress-hooks-actions-filters/
If the issue persists, let us know and we’ll assist you further.
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.