404

#993463
  • Resolved Hedy
    Rank Math free

    Why does my sitemap open initially, but when I browse a few pages and then return to it, it displays a 404 page?

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

    We apologize for the issue you are facing with your sitemap displaying a 404 error after browsing a few pages. This can happen due to caching issues or permalink settings. Here are a few steps you can take to troubleshoot this problem:

    1. Flush Permalinks: Go to your WordPress admin area, navigate to Settings → Permalinks, and click the “Save Changes” button. This can help refresh your permalink structure and may resolve the 404 error.
      Flush permalink settings

    2. Check Caching: If you are using a caching plugin, it might be serving an outdated version of your sitemap. Ensure that your sitemap is excluded from caching. You can refer to this guide on excluding sitemaps from caching.

    3. Plugin Conflicts: Sometimes, other plugins can conflict with Rank Math. You can check for conflicts using the Health Check plugin.

    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!

    Hello,

    Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.

    It seems like your sitemap is heavily cached. In this case, if you face the issue again, please try to follow the steps below:

    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. Apply the following filter to your site to disable the transients cache for the sitemap:

    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/

    Let us know how it goes. Looking forward to helping 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 ‘404’ is closed to new replies.