Sitemap question

#494697
  • Resolved Anders
    Rank Math free

    Hi,

    I’ve seen that when setting a product type to no-index, the type is also removed from the sitemap (which makes sense). But what if I want individual pages indexed and added to the sitemap (despite the overall type set to no-index)? I see that I can change individual pages from no-index to index, but the pages are not added to the sitemap.

    Thanks,
    Anders

Viewing 7 replies - 1 through 7 (of 7 total)
  • Md. Sakib Khandaker
    Rank Math agency

    Hello,

    Thanks for contacting us, and sorry for any inconvenience that might have been caused due to that.

    The most possible reason can be that your sitemap is heavily cached. Can you please try following the steps below to 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 doesn’t seem to work, kindly apply the following filter code to your site.

    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/

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

    Thank you.

    Anders
    Rank Math free

    Thank you, I will try these steps.

    One follow-up question: When I set the overall type to no-index, but set individual pages from that type to index – will the type still have a separate sitemap? And just list the individual pages set to index?

    Hello,

    Yes, the posts/pages you have set to index individually should be included in your sitemaps.

    Here’s a link for more information:
    https://rankmath.com/kb/url-not-in-sitemap/#noindex

    Hope that helps.

    Thank you.

    Anders
    Rank Math free

    Ok, thank you. I’ve done all the steps and read the documentation but individual pages set to index will not appear in the sitemap when the overall type is set to no-index. Have you actually tested it? Please confirm that you’ve double-checked that this is actually working as it should.

    Md. Sakib Khandaker
    Rank Math agency

    Hello,

    I’ve tested the situation on my end and it’s working perfectly fine.

    Can you please share a few affected URLs which are not being added to sitemap even if you set them to index?

    Assuming you’ve followed the steps mentioned above. If so, and still not being added to sitemap, then 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/

    Looking forward to helping you.

    Thank you.

    Hello,

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

    Thank you.

    Hello,

    Thank you for your patience.

    In this case, 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 like my colleague mentioned above.

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

The ticket ‘Sitemap question’ is closed to new replies.