Hello,
Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
You can use the meta name= “robots” tag to prevent your thank you page from being included in your sitemap. And in more detail, to use the “No Index, Follow” attribute. It looks like this:

You can check if the meta of your thank you page looks like this
<meta name=”robots” content=”noindex, follow”>
Once done, the thank you page should be automatically removed from your sitemap. The “follow” attribute allows the search engines to follow the links on the page and better crawl your website.
More information on how to Noindex URLs, you can check our Knowledgeable article: https://rankmath.com/kb/how-to-noindex-urls/
Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.
Thank you.
Thank you for your reply. I do not know where to find the meta of this page. I had previously checked the No Index box in Advanced expecting that to remove this page from the XML Sitemap but it remains.
Hello,
The robots meta tag can be verified by looking into the page source of the URL.
Besides, you may also share the URL of your thank you page with us, so that we can check that for you as well.
Looking forward to helping you.
Thank you.
okay thank you. this is what it shows:
<meta name=”robots” content=”nofollow, noindex, noarchive, nosnippet, noimageindex”/>
I made these changes quite awhile ago and these pages are still showing up in the XML Sitemap:
https://wmneundorfer.com/page-sitemap.xml
somehow, the instructions are not taking affect.
Hello,
I’ve checked your sitemap URL and the thank you page as well. Indeed the thank you page is still added to your sitemap.
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. 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/
If the issue still persists, please try excluding the thank you page from your sitemap by heading over to WordPress Dashboard > Rank Math > Sitemap settings > Exclude posts.
What you’ll need is just to enter the post/page ID that you want to remove from the sitemap.
Here is a guide that you can follow:
https://rankmath.com/kb/configure-sitemaps/#exclude-posts
That should fix the issue for you. Let us know if it doesn’t.
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.