Hello,
We apologize for the issue you are facing with URLs that have non-200 HTTP status codes in your sitemap. Unfortunately, the context provided does not contain specific instructions on how to exclude these URLs directly from the Rank Math sitemap.
However, you can check the status codes of your sitemap using tools like httpstatus to identify which URLs are causing issues. If you find URLs that should not be included, you may need to manually adjust your settings or use redirection rules to handle them appropriately.
If you’re still having trouble, we recommend replying to your ticket with more details about the specific URLs or issues you’re encountering. A human agent from the Rank Math Support team will be able to assist you further.
Thank you for raising this concern!
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.
Hello,
Thank you for contacting us. We apologize for any inconvenience that may have been caused.
Please try to follow the steps below and 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 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. If the above steps don’t seem to work, kindly apply the following filter to your site.
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
Here’s how you can add a filter/hook to your WordPress site:
https://rankmath.com/kb/wordpress-hooks-actions-filters/
Once done, clear your website cache and check the sitemap again.
Let us know how it goes. We look forward to hearing from you.
Thank you.