news_sitemap.xml error 404

#399318
  • Resolved Patrick Nguyen
    Rank Math free

    Hi! I’m getting error accessing domain.com/news_sitemap.xml page returns 404 error.

    What can I do to fix this?

    Thank!

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

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    Could you please confirm if you have already followed our guide here to generate the news sitemap?
    https://rankmath.com/kb/news-sitemap/

    Please note that only the posts/pages published in the last 2 days are included in the News Sitemap as per Google’s News Sitemap Guidelines:
    https://support.google.com/news/publisher-center/answer/9606710?hl=en&ref_topic=9606468

    If the issue still persists, please follow these steps (if not yet):

    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/

    Let us know how this goes.

    Thank you.

    Hi,

    Thank you for responding.

    I want to ask you this. If the news sitemap is empty, is it still accessible and not returning an 404 error?

    I have tried the methods you mentioned above.

    I tried exclude on the htaccess file; wp-rocket and Transient Cache rank-math.php file in child theme.

    Here is the exact code inside the rank-math.php file:

    /**
    * 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’);
    Sometimes your sitemap

    Was it accurate yet?

    Dear!

    I have fixed the problem. In general, after installing google news sitemap, you need to post the latest. It will return 404 error if there are no new posts

    Thank your support.

    Hello,

    I am glad that you are able to fix the problem.

    Please do not hesitate to let us know if you need our assistance with anything else.

    Thank you.

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

You must be logged in to reply to this ticket.