Sitemap is not adding post links(sitemap is not updating automatically)

#605755
  • Resolved Anonymous
    Rank Math free

    My website sitemap is not updating since few days. It shows that it was last modified on 2023-07-09 and showing 40 posts whereas, my website has 51 published posts.

    Before 2023-07-09, sitemap was updating automatically.

    I have searched and tried to flush rankmath cache and I am not using any caching plugin. I have also checked online whether my sitemap url is cached or not and the results show that sitemap url is not cached.

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

    Thank you for contacting Rank Math support. We’re sorry to hear that you’re having trouble with your sitemap. We’re here to help you fix it as soon as possible.

    Have you tried regenerating your sitemap by resaving your sitemap and permalink settings? This will refresh your sitemap and clear any old cache. You can follow the steps in this video to see how to do it: https://i.rankmath.com/pipRDp

    You can also try disabling your sitemap transient cache by adding a small code snippet to your site. You can copy and paste this code 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 to your site, you can refer to this guide: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    We hope this helps you resolve the sitemap issue and make your site run smoothly. If this works, great! If not, please let us know so we can investigate further and find another solution

    Thank you for choosing Rank Math.

    Anonymous
    Rank Math free

    Thank you for the reply.

    I have already tried regenerating sitemap by resaving sitemap and permalink settings by watching video but nothing happened.

    Today I noticed that my post sitemap is showing 41 posts and earlier was showing 40 posts. My 11 posts URLs are missing from sitemap.

    https://imgur.com/a/RgrXpdc

    Hello,

    If there are posts/pages not showing before updating them, please check this link for the common reasons why they are not getting included:
    https://rankmath.com/kb/url-not-in-sitemap/

    If the issue still persists, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Thank you.

    Anonymous
    Rank Math free

    Hello,

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

    Thank you.

    Anonymous
    Rank Math free

    I ahve provided the access please check and help me in resolving the issue.

    I have recreated sitemap and few links are missing. My website has 91 published posts. Whereas posts sitemap is showing 84 urls.

    I have submitted sitemap in google search console but and it is showing 53 pages discovered. When I click on sitemap in search console; sitemap reads show nothing.

    Hello,

    Upon investigating your site, it seems that you have put a value in the canonical URL field on your posts.

    The canonical box’s purpose would be to inform search engines that it is a duplicate page and should not be indexed. It is assumed that the canonical URL is custom, and we do not include that in the sitemap:
    https://rankmath.com/kb/url-not-in-sitemap/#custom-canonical-url

    Please refer to the video in the sensitive data section on how you can check them.

    Meanwhile, please note that each time Google uses a sitemap to find a URL, the count of the Discovered URLs increases by one.

    When the count of the Discovered URLs is zero or does not match your actual sitemap in your Google Search Console, it means Google didn’t use the sitemap to find the URLs.

    It mostly happens when you have good internal linking or used the Instant Indexing plugin.

    Here’s a link for more information:
    https://rankmath.com/kb/zero-discovered-urls-through-sitemap/

    Hope that helps.

    Anonymous
    Rank Math free

    I am using Canonical Url because I have a origin version of website for cdn. Changes that are made on non origin version are reflected at origin version. Initially google was indexing origin version. For this I have started using canonical urls and set them to be non origin version urls. As a result Google started indexing my non origin version.

    Mistakenly my content writer forgot to update canonicals for every page. As a result Google started to index origin version again.

    Can you please also guide me how can I restrict Google for not crawling origin version through robots.txt.

    Anonymous
    Rank Math free

    Thanks for identifying Caninical URL issue. I have rectified all the canonical urls. My website has 97 published posts and site map is updated and showing correct numbers.

    I have submitted the sitemap in search console and it is showing 53 urls as discovered.

    check attached image : https://imgur.com/1XcHAVy

    When I inspect indexed pages it says https://imgur.com/hixSQwT

    When I inspect URL using url tool https://imgur.com/EY68Gy9

    Can you please look into and guide me why my sitemap is not bein detected by google.

    Hello,

    Thank you for getting back to us.

    1. The ‘Discovered Pages’ tab only shows the number of pages that were discovered using that sitemap, and because sitemaps are not the only tool Google is using to discover pages, your number of ‘Discovered Pages’ might differ from your number of ‘Indexed pages’ – this isn’t a problem and in fact, it could be a good sign, as it means that you have good internal linking that Google does not need a sitemap to find some of your pages.
    2. Can you please confirm if it was your sitemap URL you were inspecting here? Your sitemap URL is not supposed to be indexed by Google – so this is an expected behavior. The sitemap is only a tool for Google to find your actual pages to index. You don’t want your sitemap to show up on Google search results.
    3. Using robot.txt to block Google from indexing your origin version URL is possible but please note that this would not solve the initial problem of pages with the origin version as canonical URL not showing up on your sitemap, it would only prevent Google from indexing any of your origin version URL. To block Google from indexing your origin version URL, you can go to Rank Math > General Settings > Edit robots.txt and add this line:
      User-agent: *
      Disallow: https://origin.learnaboutmath.com/*

      Make sure to replace https://origin.learnaboutmath.com/* with your real origin version URL.

    We hope this helps address your concerns. If you need help with anything else, please let us know.

    Thank you for your patience and cooperation

    Anonymous
    Rank Math free

    The link of image that you have shared in above post is not my sitemap url. This is one of the post url of my website. Whenever I am inspecting recently published post I usually get this (image being shared above)

    Hello,

    In this case, that might have been the issue. Google might take some time to naturally crawl/index new posts depending on your crawl budget, this can happen within a few hours of publishing or within a few days or even weeks.

    A few ways to get Google to crawl your post faster:

    • Turn on Ping Search Engines on your Sitemap settings (Rank Math > General Settings > General > Ping Search Engines). This is not a guarantee to get crawled faster but it allows Rank Math to automatically notify Google when a sitemap gets updated.
    • Use the Google Indexing API to almost instantly get Google to crawl your new post. We have integrated with this API in our Instant Indexing feature. Learn more on how to use this here

    We hope this helps clarify. Thank you for your patience and cooperation

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

The ticket ‘Sitemap is not adding post links(sitemap is not updating automatically)’ is closed to new replies.