Sitemap Not Syncing from Staging to Live Site

#1006011
  • Resolved Enterprise64 Inc.
    Rank Math free

    Hello Rank Math Support Team,

    I’m reaching out because our sitemap file is not syncing properly from our staging site to our live site. Here are the details of the issue:

    Staging Site URL: https://e64v3.flywheelstaging.com/

    Live Site URL: https://enterprise64.com/

    Rank Math Version: Version 1.0.241

    WordPress Version: WordPress 6.7.2 running Betheme Child theme.

    Steps to Reproduce:
    Update the sitemap on the staging site (e.g., add/remove posts, pages, or custom post types).

    Push changes from staging to live using the Flywheel hosting panel for migration.

    Check the live site’s sitemap (e.g., example.com/sitemap_index.xml).

    Observe that the sitemap does not reflect the updates made on staging.

    Expected Behavior:

    The sitemap on the live site should mirror the staging site’s sitemap after migration.

    Troubleshooting Steps Already Taken:

    Cleared Rank Math’s cache (via Rank Math > Status & Tools > Database Tools > Clear SEO Cache).

    Resaved permalinks (Settings > Permalinks > Save Changes).

    Rebuilt the sitemap (Rank Math > Sitemap Settings > Save Changes).

    Verified file permissions on the server.

    Could you please advise on how to resolve this? Let me know if you need further details.

    Thank you!
    Abdul Samad
    Enterprise64

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

    We apologize for the issue you are facing with the sitemap not syncing from your staging site to your live site. Thank you for providing detailed information about the problem and the troubleshooting steps you’ve already taken.

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

    1. Check for Static Sitemap Files: Ensure that there are no static sitemap files (like sitemap_index.xml) present on your live site. If such a file exists, it can cause conflicts with Rank Math’s dynamic sitemap generation. You can check this via FTP and remove any static files if found.

    2. Verify Plugin Conflicts: Sometimes, other plugins can interfere with Rank Math’s functionality. You can use the Health Check plugin to identify any potential conflicts by disabling all other plugins temporarily and checking if the sitemap updates correctly.

    3. Flush Cache: Since you’ve already cleared Rank Math’s cache, ensure that any server-side caching (like Varnish or caching plugins) is also cleared. This can sometimes prevent changes from appearing immediately.

    4. Custom Code in Theme: If you have added any custom code to your theme that might affect the sitemap, consider reviewing or temporarily removing it to see if it resolves the issue.

    5. Check Nginx/Apache Configuration: If your live site is using Nginx or Apache, ensure that the server configuration allows for proper URL rewriting for sitemaps. You may need to add specific rewrite rules as mentioned in our documentation for Nginx or Apache.

    If these steps do not resolve the issue, please reply to this ticket with any error messages you might be seeing or further details about your setup, and a human agent from our support team will assist you further.

    Thank you for your patience, and we look forward to helping you resolve this issue!

    Sources:
    How to Use Rank Math on a Staging Site » Rank Math

    Hello,

    It mostly happens when your sitemap is heavily cached. In this case, you can apply the following filter to your site to disable the transients cache for the sitemap:

    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/

    Also, you can 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/

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    Thanks for the reply. It only happens when I disable the individual post or page sitemap and enable it again; then, the sitemap is updated. Is there any way that it automatically updates the sitemap when our staging site goes live?

    Hello,

    As long as the sitemap is not being affected by a cache, it should automatically be updated on each reload.

    Kindly follow my colleague’s suggestion above.

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

The ticket ‘Sitemap Not Syncing from Staging to Live Site’ is closed to new replies.