Sitemap 404 lately

#653198
  • Resolved Anonymous
    Rank Math free

    Hi,

    Lately RankMath will return 404 for sitemap_index.xml. It gets fixed by flushing the permalinks or resaving the sitemap settings, but I wanna figure out why this is happening. I’ve never had issues with the plugin and I use just a few others that do not interfere.

    I’ve set the Cache Bypass on Cloudflare, I tried the ?sitemap=1 and the page shows up as a blank page. I tried setting up the rewrites for Apache in the .htaccess that didn’t solve anything, same goes for the cache bypass in functions.php which I probably didn’t need but decided to try it anyways.

    What could possibly cause this 404 every week or two now, which requires me to re-save the sitemap settings or permalinks in order to fix it?

    Regards,
    Mitko

Viewing 3 replies - 1 through 3 (of 3 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 share the website so we can check it as well?

    Meanwhile, if your sitemaps are getting fixed upon flushing the sitemap cache, then it must be still cached by your plugin or server caching:
    https://rankmath.com/kb/exclude-sitemaps-from-caching/

    You may also get in touch with your web host to exclude your sitemaps from being cached.

    Looking forward to helping you.

    Thank you.

    Anonymous
    Rank Math free

    We’ve managed to fix it via the rewrites in the .htaccess and the host has set a cron job to see if anything is removing those lines from the .htaccess. I’m on Cloudflare as I have written before and I have followed the instructions and it’s bypassing the cache for sure.

    Hello,

    Thank you for the update.

    Let us know how this goes with the .htaccess rewrites.

    Meanwhile, please don’t hesitate to contact us anytime if you have other questions to assist you further.

    Looking forward to helping you.

    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 lately’ is closed to new replies.