My sitemap is not updating.

#1085038
  • Resolved Samantha Hansen
    Rank Math free

    My sitemap is not updating. I have tried all of the following steps to remedy and nothing is working:

    Cleared all website caches
    Cleared CDN cache
    Cleared browser cache
    Viewed sitemap in incognito
    Flushed permalinks
    Regenerated CSS
    Cleared server cache
    Increased number of links per sitemap in Rank Math
    Verified sitemap feature is enabled in Rank Math
    Added sitemap URLs to cache exclusions
    Tested plugin conflicts by disabling all except Rank Math
    Tested theme conflicts by switching to a default theme
    Forced sitemap rebuild via custom code snippet
    Checked sitemap URLs directly
    Checked permalink settings
    Checked sitemap in incognito
    Cleared CDN cache
    Confirmed site set to index
    Deleted plugin from server and reinstalled fresh copy
    Toggled off sitemap and toggled on
    Confirmed robots.txt is not blocking sitemap
    Do not have custom canonicals
    Have submit sitemap to Google

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

    We apologize for the issue you are facing with your sitemap not updating. It seems like you’ve already taken extensive troubleshooting steps, which is great. Here are a few additional suggestions that might help:

    1. Check for Custom Canonicals: If you have set custom canonical URLs for your posts, they may not appear in the sitemap. Ensure that you remove any custom canonicals if you want all posts to be included in the sitemap.

    2. Disable Transient Caching: If you haven’t already, you can try adding the following filter to your theme’s rank-math.php file to disable transient caching of your sitemap:

      add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
    3. Review Robots.txt: Ensure that your robots.txt file is not blocking the sitemap. You can check this in Rank Math SEO → General Settings → robots.txt.

    4. Check Server Configuration: If you’re using Nginx, ensure that the rewrite rules are correctly set up in your Nginx configuration file as mentioned in our documentation. If you’re on Apache, check your .htaccess file for the correct rewrite rules.

    5. Submit Sitemap to Google Search Console: After making changes, make sure to resubmit your sitemap URL to Google Search Console to see if it fetches correctly.

    If these steps do not resolve the issue, we recommend replying to this ticket with your site URL so that a human agent from our support team can assist you further. Thank you for your patience!

    Sources:
    Rank Math Sitemap Issues and Their Fixes » Rank Math
    Troubleshooting the “Couldn’t Fetch” Error in Google Search Console » Rank Math
    Rank Math XML Sitemaps on NGINX Servers » Rank Math

    Adding code add_filter( ‘rank_math/sitemap/enable_caching’, ‘__return_false’); worked, thank you

    Hello,

    Glad that helped.

    If you have any other concerns, please don’t hesitate to contact us anytime so we can assist you further.

    Looking forward to helping you.

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

The ticket ‘My sitemap is not updating.’ is closed to new replies.