-
Hi Support
It has been 7 to 8 months since starting my website. Now I have published 40 posts and 6 pages till now, and all of them are indexed and ranking on Google. But when I see my sitemap then there are only 9 URLs discovered (post- 2 and pages- 7).
I don’t know why it is happening and why posts are not included in the sitemap.
Please help me to resolve this query.
-
Hello,
Thank you for contacting Rank Math, and sorry for any inconvenience caused.
Can you please follow these steps?
1. Flush the Sitemap cache by following this video screencast:
https://i.rankmath.com/pipRDp2. 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/That should fix the issue. Please let me know if that does not. We are here to assist.
Hi Anas
I have already done those mentioned steps but It is not working for me.
Hello,
Please add this filter to your website:
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');Here is a guide you can follow to add the filter:
https://rankmath.com/kb/wordpress-hooks-actions-filters/Once done, clear your website and browser cache, and check the sitemap.
Hope this helps.
Thank you.
I have submitted the code successfully. But still, the sitemap is not getting updated.
Hello,
We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress logins in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.
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.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
I have added the login credentials under the sensitive data section, please resolve this issue.
Hello,
I logged in to your website and set the links per sitemap to 201 to flush the sitemap cache and that fixed the issue.
Check the screenshot in the sensitive data section.
Please clear your website and browser cache and check the sitemap.
We look forward to helping you.
Even I see the same updated sitemap in my browser where My dashboard is open. However, when I checked the same sitemap in the incognito window then I found the same issue exists. You can also confirm the same while opening the sitemap in the Incognito window.
Hello,
Can you please clear the cache from Cloudflare and see if that fixes the issue?
If the issue persists, please exclude the sitemaps from caching in Cloudflare:
https://rankmath.com/kb/exclude-sitemaps-from-caching/#cloudflareLet us know how it goes.
We are here to assist you.
Hi sir
I do not know much about creating a page rule in Cloudflare. There are no step-by-step ways to create page rule in the source article that you provided.
It would be very helpful if you guide me on how to create a page rule in Cloudflare for the Sitemap Issue.
Waiting for your reply.
Hello,
In your Cloudflare settings, you can find the page rule option here:
If you are able to access that option, create a page rule and enter the code/rule provided in the guide.
If you still having issues applying the code, you may check this one with your hosting provider as they can further guide you with it.
Looking forward to helping you on this one.
Hi,
I know how to add a Page Rule on Cloudflare.
But I don’t know how and where to add this code:
sitemap?\.xml?
[a-z0-9_\-]*sitemap[a-z0-9_\-]*\xml|xsl)?
([az0-9_\-]*?)sitemap([a-z0-9_\-]*)?.xmlPlease provide me with the exact process (step by step).
I tried my best, But I could not do. Please help!Hello,
You can add this rule instead:
https://yourdomain.com/*sitemap*. Please make sure to replace yourdomain.com with your domain. Here is a guide that can help: https://support.cloudflare.com/hc/en-us/articles/218411427-Understanding-and-configuring-Cloudflare-Page-Rules-Page-Rules-Tutorial-#h_18YTlvNlZET4Poljeih3TJLet us know how that goes. Looking forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
The ticket ‘URLs are Not Including in the Sitemap’ is closed to new replies.