404 error on xml sitemap

#344401
  • Resolved Edwin
    Rank Math free

    Hi there,

    I have installed Rankmath on a couple of sites and 2 of them (which are basically the same) have problems with the sitemaps, it keeps giving 404 errors. Another site which has a different theme and different set of plugins, but is on the same server, does show the sitemap correctly.

    I have excluded the sitemap urls from the caching (Breeze) and on the Varnish settings in my Cloudways dashboard.

    I have changed the number of urls in the sitemap and saved the permalink settings and still the 404 error keeps coming back.

    Do you have any idea how to resolve this?

    Kind regards,
    Edwin

Viewing 13 replies - 1 through 13 (of 13 total)
  • Azib Yaqoob
    Rank Math business

    Hello,

    Thank you for contacting Rank Math, and sorry for any inconvenience caused.

    Please enable the Rank Math sitemap module and 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/

    Once done, clear the website cache and check the sitemap.

    That should fix the issue. Please let me know if that does not. We are here to assist.

    Edwin
    Rank Math free

    Hi Azib,

    as you could read in my first message, I did that already:
    I have excluded the sitemap urls from the caching (Breeze) and on the Varnish settings in my Cloudways dashboard.

    Also I did this:
    I have changed the number of urls in the sitemap and saved the permalink settings and still the 404 error keeps coming back.

    The issue has not been resolved yet.

    Kind regards,
    Edwin

    Azib Yaqoob
    Rank Math business

    Hello,

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Edwin
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Azib Yaqoob
    Rank Math business

    Hello,

    Thank you for providing further details. Unfortunately, the temporary login URL that you shared with us.

    Kindly double-check the URL so that we can access the site and assist you further.

    Thank you

    Edwin
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    I can check that the sitemap is working fine on the ES site. Can you please share the login details of the FR site so we can check and fix the issue?

    Looking forward to helping you.

    Thanks.

    Edwin
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    I flushed the cache of your sitemap and it is working fine now:

    And I have also added the filter given below in your theme’s functions.php file to make sure that it doesn’t get cached:

    /**
     * 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');

    Please check and let us know if you need any other assistance.

    Thanks.

    Edwin
    Rank Math free

    Hello Jaideep,

    thanks a lot for your help, might I ask how you flushed the sitemap cache? Because when I flushed the cache using the Breeze plugin it did not do anything for me.

    Kind regards,
    Edwin

    Hello,

    I followed this screencast to flush the cache: https://i.rankmath.com/pipRDp

    Hope this helps. Let us know if you need any other assistance.

    Thanks.

    Edwin
    Rank Math free

    Thanks a lot Jaideep!
    Have a good day!
    Kind regards,
    Edwin

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

You must be logged in to reply to this ticket.