Sitemap update

#932286
  • My site is a news site.
    Shared posts are not included in the sitemap. Every time I change the number of posts included in the sitemap, the sitemap is updated. For example, I change 200 posts per sitemap to 300, the sitemap is updated, and the latest news is included.

    [Moved to the sensitive data section]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Thank you for contacting us. We apologize for any inconvenience this issue may have caused.

    Please follow the steps below for initial troubleshooting:

    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/

    If the issue persists then try disabling the transient cache for the sitemap. This will make sure that your XML sitemap always reflects the latest changes on your site. Kindly add this code snippet to 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/.

    After you add the code, please clear any cache on your site or server and check your XML sitemap again. If you’re still facing issues with the sitemap, please let us know – we are happy to investigate further.

    Hagigat Kiranoglu
    Rank Math free

    Thank you very much for the detailed information. It seems to be fixed.

    But now another problem appears. In the instant indexing, all statuses are 202. Previously, they were 200. Is there any solution to fix this?

    Hello,

    The 202 status code means that the URL has been accepted by the IndexNow API but the site is yet to get verified by the API. For more details on response codes, you can check this URL: https://rankmath.com/kb/how-to-use-indexnow/#history

    Hope that helps and please don’t hesitate to let us know if you have any other questions.
     
    Thank you.

    Hagigat Kiranoglu
    Rank Math free

    What technical work do I need to do to get the status to 200?

    Hello,

    Unfortunately, there is nothing to do when IndexNow returns the 202 status code. As we already mentioned above, the 202 status means Rank Math has successfully submitted your URL to the IndexNow API but the API key will be checked later.

    There is no fixed/estimated time for this as it’s up to Bing if they verify it right away.

    Hope that helps and please don’t hesitate to let us know if you have any other questions.

    Thank you.

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

You must be logged in to reply to this ticket.