No sitemap visible (again)

#620196
  • Resolved Anonymous
    Rank Math free

    I’m having the same problem as before with my missing sitemap. This time I removed and then reinstalled the sitemap but GSC does not come back green. What should we do?

    I had an old ticket (now closed) on this exact issue, I think the old ticket # was 592668. I am getting a 404 error again.

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

    Thank you for contacting Rank Math support and we apologize for the inconvenience.

    We have gone through the other ticket and also taken a look at your sitemap, it looks like the sitemap is throwing a 404 error.

    To resolve this error, you’ll need to flush and regenerate your sitemap but to make sure this issue does not happen again – you need to make sure that you have excluded your sitemap from caching – as caching plugins are usually the cause of this error. Please follow these steps:

    • Reset your WordPress permalinks by going to WordPress Dashboard > Settings > Permalinks and clicking Save Changes without making any changes.
    • Regenerate your sitemap by going to Rank Math > Sitemap Settings and changing the Link per Sitemap to 201 or anything else and then click Save Changes. You can change it later, this is just to regenerate your sitemap. You can follow this screencast: https://i.rankmath.com/pipRDp
    • 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/
    • Also add this code to your site to make sure this does not keep occurring.
      /** 
       * 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');

      You can learn how to add this code to your website here: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    If none of these steps resolve the issue, please let me know and provide us with your WordPress login details and FTP access in the Sensitive Data section so we can take a closer look.

    We hope this helps. Please let us know if you have any questions or concerns.

    Anonymous
    Rank Math free

    Thanks for your swift response.

    I reset the permalinks as instructed. I tried to regenerate the sitemap but there is no function to ‘change link per sitemap’ like the screencast shows. The function simply is not there.

    Can you see the sitemap on your end now? If it works, how can we make Google crawl it again?

    And how do I add the code so this doesn’t happen again? Where in WP does that code go?

    Hello,

    Thank you for getting back to us.

    Yes, your sitemap seems to be working now.

    But just in case, the links per sitemaps is an advanced setting and you would not see it unless you have switched to Advanced Mode in Rank Math > Dashboard. Learn more here: https://rankmath.com/kb/switch-from-easy-to-advanced-mode/

    You should also make sure to exclude your site from caching following the previously shared instructions.

    We hope this helps clarify. Thank you for your patience and cooperation

    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 3 replies - 1 through 3 (of 3 total)

The ticket ‘No sitemap visible (again)’ is closed to new replies.