Subject: Urgent: Sitemap is not regenerating after major site changes

#1097375
  • Resolved Mark Ma
    Rank Math free

    Hello Rank Math Support Team,

    I need your help with a very stubborn sitemap issue on my website, bsbagfactory.com.

    The Goal:
    I have a multilingual site using TranslatePress. I have recently removed several language versions (e.g., /en_au/, /en_gb/, /pt/, etc.) and have successfully set up 301 redirects for all their URLs to my main language version.

    The Problem:
    My sitemap is not updating to reflect these changes. The sitemap_index.xml and all its sub-sitemaps are stuck on an old “Last Modified” date (August 23, 2025) and still contain thousands of URLs for the languages that have been removed.

    Exhaustive Troubleshooting Steps I Have Already Taken:

    I have followed all standard and advanced procedures, but the sitemap file on the server is physically not being updated. Here is everything I’ve done:

    Confirmed Languages Removed: The old languages have been completely removed from the TranslatePress plugin settings. The language switcher on the site is correct.

    Confirmed No “Ghost” Content: I have manually checked the WordPress Admin lists for Pages, Posts, and Products. I used the language filters and confirmed there are NO remaining entries for the languages I removed. The database appears clean from the admin view.

    Forced Sitemap Regeneration: I have tried to force a regeneration multiple times by going to Rank Math -> Dashboard and toggling the Sitemap module OFF and then back ON, saving each time.

    Cleared ALL Possible Caches: I have purged every cache layer multiple times, including:

    LiteSpeed Cache (“Purge All”)

    Hostinger’s server-level cache

    Cloudflare CDN cache (“Purge Everything”)

    Rank Math Transients (via Status & Tools)

    My browser cache (always testing in Incognito mode)

    Rebuilt Rank Math’s Data: I have used the Rank Math -> Status & Tools -> Database Tools to run both Rebuild Index for Analytics and Remove Transients.

    Despite all these actions, the sitemap date remains stuck on August 23, 2025, and the content is incorrect.

    This leads me to believe the issue is very deep, possibly with how Rank Math’s sitemap function is querying the database or that there is some corrupted data in a custom table that is not being cleared by the standard tools.

    Could you please provide guidance on how to force a true, deep, database-level regeneration of the sitemap data? Are there any other database tables or options I need to clear to make Rank Math completely re-scan my site’s current, correct structure?

    I am willing to provide temporary admin access to the site if needed for your investigation.

    Thank you for your help.

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

    We apologize for the issue you are facing with your sitemap not updating after the changes made to your website. It sounds like you’ve already taken extensive troubleshooting steps, which is great.

    Here are a few additional suggestions that might help resolve the issue:

    1. Flush Permalinks: Sometimes, simply flushing the permalinks can help. Go to Settings → Permalinks in your WordPress admin area and click Save Changes without making any modifications. This can refresh the permalink structure and may trigger the sitemap to update.

      Flush permalink settings

    2. Check for Plugin Conflicts: Since you are using multiple plugins, there might be a conflict affecting the sitemap generation. You can use the Health Check plugin to troubleshoot this by disabling all other plugins except Rank Math and checking if the sitemap updates.

    3. Review Robots.txt: Ensure that your robots.txt file is not blocking access to your sitemap. You can check this in Rank Math SEO → General Settings → robots.txt.

    4. Server Configuration: If you are using Nginx or Apache, ensure that the server configuration allows for dynamic sitemap generation. You may need to add specific rewrite rules as mentioned in our documentation for Apache or Nginx.

    5. Check for Custom Canonicals: If you have set custom canonical URLs for any posts, they may not appear in the sitemap. Ensure that all posts have the correct canonical settings.

    If these steps do not resolve the issue, we recommend replying to this ticket with your site URL and any additional details, and a human agent from our support team will take over and assist you further.

    Thank you for your patience, and we hope to resolve this issue for you soon!

    Sources:
    Rank Math Sitemap Issues and Their Fixes » Rank Math

    Mark Ma
    Rank Math free

    Unfortunately, I have tested everything and the sitemap is still stuck in August. Even though I updated the URL, rank math will not update. I need to update to GSC

    Mark Ma
    Rank Math free

    website url bsbagfactory.vom

    Mark Ma
    Rank Math free

    Hello,

    Thank you for the suggestions. I have now used the Health Check & Troubleshooting plugin to enter Troubleshooting Mode.

    I disabled all plugins, then re-enabled only Rank Math, TranslatePress, Elementor, and WooCommerce. In this clean environment, I forced the sitemap to regenerate by toggling the Sitemap module off and on.

    The result is that the sitemap still did not update and is stuck on the old date (August 23). This proves the issue is not a conflict with another third-party plugin, but likely a deeper issue within Rank Math or its interaction with TranslatePress/WooCommerce.

    Could you please escalate this issue and provide further technical guidance?

    Thank you.

    Hello,

    Thank you for contacting the support and sorry for not following up quickly and any inconvenience that might have been caused due to that.

    We checked the sitemap, and it works correctly.

    We also tested them and found no issues there.

    You can try disabling the transient cache for the sitemap. This will make sure that your XML sitemap always reflects the latest changes on your site. Kindly add this code snippet to your site:

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

    If you’re not sure how to add this code, you can follow this guide: https://rankmath.com/kb/wordpress-hooks-actions-filters/.

    After you add the code, please clear any cache on your site or server and try removing and adding your main sitemap (sitemap_index.xml) to GSC.

    Please note that Google can take some time to recrawl your sitemaps. You can monitor the “Last read/crawl date” column in the sitemap index as it will update the date when Google crawls your sitemap.

    Also, please note that the ‘Discovered Pages’ on the Google Search Console only shows the number of pages that were discovered using the sitemap, and since the sitemap is not the only tool Google uses to discover pages, the number of ‘Discovered Pages’ might differ from your number of pages on your sitemap.

    Let us know how it goes. 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 5 replies - 1 through 5 (of 5 total)

The ticket ‘Subject: Urgent: Sitemap is not regenerating after major site changes’ is closed to new replies.