-
Why are 9 posts not in the sitemap?
-
Hello,
I apologize for the issue you are facing with 9 posts not appearing in the sitemap. There could be several reasons why these posts are not included in the sitemap. Some common reasons include:
-
The page is set as Noindex: If the posts are set as Noindex, they will not appear in the sitemap. You can check and change this setting by going to the Advanced tab of each post or page and ensuring that the Robots Meta tag is set to Index.
-
Custom Canonical URL: If a Custom Canonical URL is set for the posts, they might not be included in the sitemap. You can change the canonical URL to get the posts indexed and submitted in the sitemap.
-
Excluded from Sitemap: If the posts are excluded from the Sitemap Settings, they will not be included in the sitemap. You can check and adjust this setting in the Sitemap Settings.
If you have checked these settings and the posts are still not appearing in the sitemap, please let us know so we can further assist you. Thank you for bringing this to our attention.
If you need more help, please assign this ticket to a human agent using the available buttons.
Sources:
Why Isn’t My URL Included in the Sitemap? » Rank Math
Indexed, Not Submitted in Sitemap – Google Search Console » Rank Math
Google URL Inspection API Integration in Rank Math
Why Google Hasn’t Indexed Your Post, Page, and/or Website? » Rank MathHello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
Thank you for contacting us and sorry for any inconvenience that this issue might have caused.
Please follow the steps below for initial troubleshooting:
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/
If the issue persists then try disabling the transient cache for the sitemap. This will make sure that your XML sitemap always reflects the latest changes on your site. To do this, you need to add a small piece of code to your site’s functions.php file or use a plugin like Code Snippets.
The code you need to add is this:/** * 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/.
It will show you step-by-step how to use the Code Snippets plugin or edit the functions.php file safely.
After you add the code, please clear any cache on your site or server and check your XML sitemap again. If you’re still facing issues with the sitemap, please let us know – we are happy to investigate further.
I couldn’t find which plugin conflicts with both the sitemap and the robots.txt file.
The robots.txt file is currently hosted or I would have timeouts caused by Rank Math. I have short timeouts anyway, so I haven’t fully resolved it. Site performance is inconsistent: I get severe slowdowns for short periods.
The sitemap instead put the URLs of the staging site produced by Softcolous. I changed staging programs. But I still have problems like lack of new URLs posted.
I am more than convinced that these problems are related to you, because I haven’t been able to place posts decently for 3 years, despite the competitors who are easy to beat.
I have never excluded the sitemap from the htaccess cache. Should I do this in addition to Cloudflare and Wp Super Cache?
Unfortunately I am not able to understand if the changes will be reflected and if the timeouts will stop happening.
Hello,
We’ve checked your post sitemap, and those URLs you have shared from your screenshot are already included there.
To rule out if your sitemap is getting cached, you can monitor your post sitemap upon publishing a new post. The post sitemap should show the new post URL in real-time (without any delay).
If the new post is not showing right away in your post sitemap, then you can add the htaccess rewrite rule. However, you may need to ensure that it is not getting added twice by following these steps:
https://rankmath.com/kb/exclude-sitemaps-from-caching/#htaccessLet us know how this goes.
I’ve actually always had the URLs updated immediately, except for the strangeness of the last few weeks. I’m afraid I won’t have solved it.
Hello,
Your sitemap seems updated. You should also add the following filter to your site to make sure that the sitemap doesn’t get cached in the future. You can rerun the audit on your site to update the results in Ahrefs.
Please do not hesitate to let us know if you need our assistance with anything else.
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.
-
The ticket ‘Indexable page not in sitemap’ is closed to new replies.