Posts duplicate in sitemap and posts dissapeared

#793281
  • This weeks Ahref’s report reports that 11 URLS are suddenly duplicate in both my post-sitemap 1 and sitemap 2. At the same time, 11 other URLS are gone from my sitemap.

    Any ideas why this suddenly happened, and what can I do about it please?

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

    I’m sorry to hear about the issues you are facing with your sitemap and posts disappearing. The sudden appearance of duplicate URLs in your post-sitemap and the disappearance of other URLs could be due to various reasons. Here are some possible causes and solutions:

    Duplicate URLs in Sitemap:

    1. Content Duplication: Check if there is any content duplication on your website. If you find duplicate pages, you can use canonical URLs to point to the original content you want to index. Here is a guide on how to change canonical URLs.

    Posts Disappeared from Sitemap:

    1. Noindex Setting: The missing URLs might have been set to Noindex. You can check this by going to the Advanced tab settings of the specific posts or pages. If the Robots Meta tag is set to Noindex, that could be why they are not appearing in the sitemap. Change the setting to Index to include them in the sitemap.

    If these suggestions do not resolve the issues, I recommend checking for any plugin conflicts using the Health Check plugin. Additionally, ensure that your sitemap is correctly configured and located in the root folder as described in our guide on fixing sitemap issues.

    Feel free to follow these steps, and if you need further assistance, please reply here, and a human agent will take over the ticket to assist you further.

    Thank you for reaching out with your concerns.

    Sources:
    Why Did My Website Disappear From Google Search? » Rank Math
    Rank Math Sitemap Issues and Their Fixes » Rank Math
    Why Isn’t My URL Included in the Sitemap? » Rank Math
    Why Google Hasn’t Indexed Your Post, Page, and/or Website? » Rank Math
    Troubleshooting the “Couldn’t Fetch” Error in Google Search Console » Rank Math

    This is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.

    Just to respond to the bot, it is not a duplicate content issue and not a plugin conflict issue.

    Hello,

    Please share the report from Ahrefs together with the affected URLs so we can check and advise accordingly.

    You can upload screenshots using this tool and add the link here.

    If you want those to be in private, you may add those in the sensitive data section

    Sensitive Data Section

    It is completely secure, and only our support staff has access to that section.

    Looking forward to helping you.

    Hello,

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

    Thank you.

    Hello. Have you had the time to check up on this? Thank you.

    Hello,

    We’ve checked the URLs from your screenshot, and indeed there are duplicate URLs appearing.

    For troubleshooting, please follow these steps to flush your sitemap cache:

    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. Disable the transient cache for the sitemap by applying this filter. This will make sure that your XML sitemap always reflects the latest changes on 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/

    Let us know how this goes.

    Hello,

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

    Thank you.

    I followed the steps and it seems to be solved? Can you check the screenshot in sensitive data to see if I edited the file editor correctly please?
    Also, should I re submit sitemap in google?
    Thanks.

    Hello,

    Yes, the code in your functions.php should work just fine.

    Also, please remove and resubmit your main sitemap index to your Google Search Console.

    Once done, give Google some time to recrawl your URLs.

    Looking forward to helping you.

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

You must be logged in to reply to this ticket.