Sitemap error 404

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

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

    I have checked your sitemap and it seems to be working now. The most common cause of frequent 404s on the sitemap is caching of the file.
    Please check whether this file has been excluded from your caching rules.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Thanks for your reply,
    Can you tell me how to check whether sitemap file has been excluded from your caching rules.

    Hi,

    Please add this code in your theme’s functions.php file to disable Rank Math caching your sitemap file:
    add_filter( 'rank_math/sitemap/enable_caching', '__return_false');

    Also, check the exclusion settings of your cache plugin and add the sitemap_index.xml file to the exclusion list.

    Thank you for your reply and information.

    Hi Sonu,

    I am so glad to be of help. We are always here if you need us in the future.

    Hey, if it isn’t too much to ask for – would you mind leaving us a review here?

    https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post

    It only takes a couple of minutes but helps us tremendously.

    It would mean so much to us.

    Thank you.

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

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