URLs with non-200 http status code in Sitemap

#1100152
  • Resolved Marc Grau
    Rank Math free

    Hi there, so I have been trying to force Rank Math to exclude URLs without a status code other than 200, but seems like something is wrong.

    Via the classic tools from Rank Math itself seems like there is nothing to help me. So I would love to hear from you too.

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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!

    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.

    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.

Viewing 2 replies - 1 through 2 (of 2 total)

The ticket ‘URLs with non-200 http status code in Sitemap’ is closed to new replies.