Sitemap throws a 404 error

#616070
  • Resolved Anonymous
    Rank Math free

    Hi,

    I am noticing that my sitemap_index.xml is throwing a 404 error.
    I am getting this in my 404 error report in WP as well as noticing it on the GSC in sitemaps.

    I have tried doing the flushes as outlined in the knowledge base (change # of sitelinks and save) and (re-save permalinks). This fixes the issue temporarily but the problem happened again.

    I have excluded the sitemaps from my caching plugin (WP Optimize)

    Is there any other reason why i am getting a 404 error?

    Website: http://www.ringsforhim.com.au

    thanks

Viewing 1 replies (of 1 total)
  • Hello,

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

    Could you please try to add the following filter on your sitemap and see if that works for you?

    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/

    If the issue still persists, then 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/

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

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