-
Hello Support,
We have facing issue with new pages not showing in page-sitemap.xml after create new pages. There are showing only new posts created but for pages not showing in page-sitemap.xml. Can you please help me out for that what was issue.
Thank you
-
Hello,
Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.
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/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/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/If they are still not showing, you may refer to our guide here for the common reasons why a URL is not getting included in your sitemap:
https://rankmath.com/kb/url-not-in-sitemap/Moreover, Please note that Google crawls small-sized sitemaps faster. You can also check Google’s guidelines for sitemaps:
https://developers.google.com/search/docs/advanced/sitemaps/build-sitemapWith this in mind, Rank math uses the links per sitemap limit to break down sitemaps into smaller parts.
We usually recommend the links per sitemap between 200 and 500 only for faster crawling.
Looking forward to helping you.
Hello Support,
We have facing some issue with sitemap showing in google search. We have this all sitemap urls showing no-index in google console. And why Xrobot block for this sitemap urls. We need to enable it below url with index-follow
https://www.bacancytechnology.com/blog/post-sitemap.xml
https://www.bacancytechnology.com/blog/category-sitemap.xml
https://www.bacancytechnology.com/blog/page-sitemap.xml
Above this sitemap showing block by X-robot and not showing in google search(no-index).
Also, We have other issue coming for Cache issue with rankmath plugin. There no cache clear occurs for rankmath plugin, please suggest for this.Thank you
Hello,
That is normal if you’re inspecting your sitemap URL in your Google Search Console.
You’ll get the error if you inspect your sitemaps because, by default, sitemaps are set to Noindex as they are meant to be crawled and not to be displayed on search results pages.
You should only submit your sitemap to the sitemap section of your GSC account and shouldn’t use the URL inspection tool for the sitemap URLs.
https://rankmath.com/kb/submit-sitemap-to-google/Regarding the caching issue, could you please share some more details with us so that we can check this further for you?
Looking forward to helping you.
Thank you.
Thanks for Reply Rakibuzzaman Siam,
We will submit sitemap on google but its showing us No-index for that sitemap, We need to make index, follow for that all urls. Can you please help for that how can we make Index,follow.
Also, We can share here for cache issue , there are error coming in plugin se below
[04-Dec-2024 03:00:35 UTC] PHP Warning: preg_match_all(): Compilation failed: missing terminating ] for character class at offset 46 in /var/www/html/qanda/wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-post-variables.php on line 543
[04-Dec-2024 03:00:35 UTC] PHP Warning: preg_match_all(): Compilation failed: missing terminating ] for character class at offset 46 in /var/www/html/qanda/wp-content/plugins/seo-by-rank-math/includes/replace-variables/class-post-variables.php on line 543Can you please tell us why this error coming and no clear cache for Rankmath
Thank you
There are our all sitemap showing in google like this Page is not indexed: Excluded by “noindex” tag
So, we need make it all sitemap index,follow and showing in google console.Hello,
1. We understand your concern about the sitemap being set as ‘noindex’, but we assure you that this is how it should be.
The reason is that we don’t want Google to index the sitemap itself, we only want them to index the pages and posts that are listed on the sitemap. The sitemap is just a way to tell Google what pages and posts you have on your website, not a page that you want to show up in search results.
The important thing is that your pages and posts are set to ‘index’, which means that they are eligible to appear in Google search results.
You can check this by looking at the Rank Math settings on each page or post, or by using the Google URL Inspection tool.
To make sure that Google knows about your sitemap and can crawl your pages and posts, you need to submit your sitemap to Google Search Console.
This is a simple process that you can follow by using our tutorial: https://rankmath.com/kb/submit-sitemap-to-google/
2. The error message
preg_match_all
that you see is most likely caused by a mismatch in the parentheses of some of your focus keywords.Sometimes, you might use parentheses to group words together or to indicate a variation – however, if you forget to close a parenthesis, or if you have an extra one, this can cause the error message to appear.
To fix this problem, you need to check the focus keyword of the page and make sure that every parenthesis is matched with a closing one.
We hope this helps. Please let us know if you have further questions or concerns.
Thank you.
Thanks for Reply Ike,
You gave good suggestion but we have already submit all above sitemap urls in google console but showing in no-index tag for all that so can you please let us know from where i can enable (plugin setting or using hook) index,follow them to showing them in google search.
Thanks
Hello,
Also, We have Total Approx. 950 published posts and pages, So what we do best input for “Links Per Sitemap” setting in Rank math. Beacoz currently, We have facing issue for some hide(not showing) in sitemap.xml when publish post/page.Thank you
Hello,
Please note that pages/posts set to
noindex
and with alternate canonical links, that is the canonical URLs are not self-referencing, would not be included in the sitemap.Can you share some of the URLs that are currently not shown on the sitemap?
We anticipate hearing back from you.
Thank you.
Thanks for Reply
Above massage is ok but we need to this for all sitemap url showing noindex on google console.
we have already submit all above sitemap urls in google console but showing in no-index tag for all that so can you please let us know from where i can enable (plugin setting or using hook) index,follow them to showing them in google search. We need to this urls make index and showing on google console and search.https://www.bacancytechnology.com/blog/post-sitemap.xml
https://www.bacancytechnology.com/blog/category-sitemap.xml
https://www.bacancytechnology.com/blog/page-sitemap.xmlThank you
Hello,
As we have mentioned previously, the XML sitemaps aren’t meant for indexing (unless you’re referring to the sitemap HTML, if so please confirm).
Please avoid submitting the sitemaps to Google’s URL Inspection Tool. That tool is meant for HTML pages you want to show up on the SERP only and sitemap is not something to be indexed on the SERP.
You should submit the sitemap in the correct section which you can see in this guide here: https://rankmath.com/kb/submit-sitemap-to-google/
Looking forward to helping you.
You must be logged in to reply to this ticket.