Sitemap 404 error

#613114
  • Resolved Usman
    Rank Math free

    I have watch tutorials and set permalinks and when I save permalink so sitemap works but next day again 404 error.

    Check pls

    Url in secure data.

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

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

    This issue could be occurred due to the cache of your website. If you’re using any caching plugin on your site, please follow this guideline to exclude the Sitemap files in your caching plugin: https://rankmath.com/kb/exclude-sitemaps-from-caching/

    You can also try to add the following filter on your website to disable the transient 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/

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

    Thank you.

    Usman
    Rank Math free

    I am not using any cache plugin.

    Alhan
    Rank Math free

    Hello,

    Thank you for sharing that you do not have any caching plugin.

    However can you please confirm if you have already added the following filter on your website to disable the transient cache for the sitemap:

    add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
    

    If not yet add please add it and proceed with the steps suggested in this video screencast just once again this time prevent the same issue in the future:
    https://i.rankmath.com/pipRDp

    Also for Cloudflare, please follow this article ( if you use cloudflare ) :
    https://rankmath.com/kb/exclude-sitemaps-from-caching/#cloudflare

    We hope that helps, and please don’t hesitate to get in touch if you have any other questions.

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

The ticket ‘Sitemap 404 error’ is closed to new replies.