Hello,
We apologize for the issue you are facing with the category and tag sitemaps returning a 404 error. This can happen for a few reasons, and we can help you troubleshoot it.
Here are some steps you can take to resolve the issue:
-
Flush Permalinks: Sometimes, simply flushing the permalinks can resolve sitemap issues. To do this, go to your WordPress admin area and navigate to Settings → Permalinks, then click the “Save Changes” button without making any changes. This action refreshes your permalink settings.

-
Check Sitemap Settings: Ensure that you have correctly enabled the category and tag archives in your sitemap settings. You can check this by going to Rank Math SEO → Sitemap Settings and confirming that the options for categories and tags are enabled.
-
Check for Plugin Conflicts: Sometimes, other plugins can interfere with Rank Math’s functionality. You can use the Health Check plugin to identify any potential conflicts.
-
Review robots.txt: Make sure that your robots.txt
file is not blocking access to your category and tag sitemaps. You can check this in Rank Math SEO → General Settings → robots.txt.
-
Clear Cache: If you are using a caching plugin, clear your cache to ensure that you are viewing the most recent version of your site.
If these steps do not resolve the issue, please reply to this ticket with your site URL so that a human agent from our support team can assist you further. Thank you for raising this concern, and we look forward to helping you get this resolved!
Sources:
Rank Math Sitemap Issues and Their Fixes » Rank Math
Hello,
Thanks for contacting Rank Math support. We apologize for any inconvenience this might have caused you.
Please follow the steps below to see if that works for you.
#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 from caching. 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. If the above steps don’t seem to work, kindly apply the following filter code to your site.
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
Here’s how you can add filter/hook to your WordPress site:
https://rankmath.com/kb/wordpress-hooks-actions-filters/
Once done, please clear your website cache including server-side cache, and check the sitemap again.
Let us know how it goes. We look forward to hearing from you.
Thank you.
Thanks, I found the problem. It was a misconfigured term-link filter-hook.
Hello,
We’re delighted to hear that this issue has been resolved. We appreciate your feedback.
This ticket will be closed now, but if you ever have another question or need any help in the future, please don’t hesitate to create a new forum topic. We’ll be more than happy to assist you.
Thank you.