Sitemap not updating the slug

#1098076
  • Resolved Aamir Hussain
    Rank Math free

    Hi there, i am very upset by getting optimization errors in SEM Rush, The Rank Math Sitemap is not updating any post slug if i change.

    It shows the old slug anyway.

    Error

    i did everything to solve this issue, Sitemap toggle in Rank Math Plugin, Permalink page save without change. WP Rocket Cache clear, Cloud flare Cache clear, re updating Post, redirect old slug to new slug.

    Website url: https://trickiknow.com/
    Sitemap url: https://trickiknow.com/sitemap_index.xml

    Help me on this issue!

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

    We apologize for the issue you are facing with the Rank Math Sitemap not updating the post slugs. It sounds frustrating, especially when you’re receiving optimization errors in SEM Rush.

    Here are a few steps you can take to troubleshoot this issue:

    1. Flush Permalinks: You mentioned that you saved the permalinks without changes, which is good. Just to confirm, go to Settings → Permalinks in your WordPress admin area and click Save Changes again.
      Flush permalink settings

    2. Check for Plugin Conflicts: Sometimes, other plugins can interfere with Rank Math. You can use the Health Check plugin to identify any conflicts.

    3. Clear Cache: Ensure that all caching plugins (like WP Rocket) are cleared, and also check if your server has any caching mechanisms that might be affecting the sitemap.

    4. Check Robots.txt: Make sure that your robots.txt file is not blocking the sitemap or any of the updated slugs. You can check this in Rank Math SEO → General Settings → robots.txt.

    5. Sitemap Settings: Go to Rank Math SEO → Sitemap Settings and ensure that all relevant post types are included in the sitemap.

    6. Custom Canonicals: If you have set custom canonical URLs for your posts, they may not appear in the sitemap. Consider removing them to see if that resolves the issue.

    If you’ve tried all these steps and the issue persists, we recommend replying to this ticket so a human agent from the Rank Math Support team can assist you further. Please include any additional details or errors you may have encountered.

    Thank you for raising this concern, and we hope to resolve it for you soon!

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

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    Thank you for your query and we are so sorry about the trouble this must have caused.

    The issue here is that the old URL -nvidia-card is still active on your website and marked as indexed, although it is now redirected to -nvidia-gpu.

    However, the -nvidia-gpu page should also be in the sitemap, but it is currently not there.

    Please follow the steps below:

    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. Apply the following filter code to your site.

    
    add_filter( 'rank_math/sitemap/enable_caching', '__return_false');

    Here’s how you can add filter to your WordPress site:https://rankmath.com/kb/wordpress-hooks-actions-filters/

    4. Remove all your sitemaps from your Google Search Console and re-submit only the index sitemap (https://website.com/sitemap_index.xml)

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

    1) I flushed the Sitemap cache now (and before more than 100 times) never worked

    2) Updated htaccess file

    Htasss

    3) Excluded sitemap from WP Rocket

    WP Rocket

    4) Added filter to Snippets

    Snippets

    After doing all of these, finally Now Sitemap is Updated.

    Sitemap

    Thank you so much

    The sitemap is working now, all my slugs are updated and also i deleted 5 posts from my site that’s also updated. The deleted post were also not vanishing from sitemap earlier.

    Thank you my problem is Solved.

    Hello,

    Glad that everything has been sorted out.

    Please feel free to reach out to us again in case you need any other assistance.

    We are here to help.

    Thank you.

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

You must be logged in to reply to this ticket.