-
Hi, I moved my site from zaidseo.com to zaidseo.pk and after this i tried many methods but nothing is working to update the sitemap. The sitemap hasn’t updated since i migrated the domain.
-
Hello,
We apologize for the issue you are facing with your sitemap not updating after your domain migration. Here are some steps you can take to resolve this issue:
-
Flush Permalinks: Go to your WordPress dashboard, navigate to Settings → Permalinks, and click Save Changes. This can help refresh your permalinks and may resolve the sitemap issue.
-
Check Sitemap URL: Ensure that you are submitting the correct sitemap URL to Google Search Console. It should be `https://rankmath.com/blog/clear-cache-in-wordpress/.
-
Validate Your Sitemap: Use the Validate XML Sitemap tool to check if your sitemap is correctly configured.
-
Ensure Posts Are Set to Index: Make sure that your posts are set to index. Go to Rank Math SEO → Titles & Meta and ensure the Index checkbox is enabled in the Robots Meta settings.
-
Check 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.
-
Clear Cache: If you are using any caching plugins, clear your website cache and try again.
If these steps do not resolve the issue, please reply to this ticket with your site URL so that a human agent from our team can assist you further. Thank you for raising this concern!
Sources:
Rank Math Sitemap Issues and Their Fixes » Rank Math
Troubleshooting the “Couldn’t Fetch” Error in Google Search Console » Rank MathI tried all the above methods. everything is correctly figured but the sitemap is still not updating.
Hello,
Thank you for contacting us. We apologize for any inconvenience that may have been caused.
Please try to follow the steps below and see if that works for you.
1. Flush the Sitemap cache by following this video screencast: https://i.rankmath.com/pipRDp
2. 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/
3. If the above steps don’t seem to work, kindly apply the following filter to your site.
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
Here’s how you can add a filter/hook to your WordPress site:
https://rankmath.com/kb/wordpress-hooks-actions-filters/Once done, clear your website cache and check the sitemap again.
Let us know how it goes. We look forward to hearing from you.
Thank you.
Sometime this happens during migration sites.
Hello,
@Off Roblox Yes, this happens in the migration process. But it should be cleared once your site is fully migrated and the cache of the sitemaps is flushed.
@Muhammad Zaid Ali We’ve checked your sitemaps, and your latest post is already included.
Let us know if you have further questions so we can assist you.
Looking forward to helping you.
Nothing worked except the last option where i had to add the filter that you mentioned:
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
Thanks so much it worked!
Hello,
We are glad to know that this issue has been resolved. Thank you for letting us know.
This ticket will be closed now, but you can always open a new one if you have any other questions or concerns. We are here to help you with anything related to Rank Math.
We appreciate your patience and cooperation throughout this process.
Thank you for choosing Rank Math.
-
The ticket ‘Sitemap not updating after domain migration’ is closed to new replies.