-
Hello,
there is an with my sitemap.
It is under the URL: https://kombologaki.gr/sitemap_index.xmlThank you
-
Hello,
Thank you for contacting Rank Math, and sorry for any inconvenience caused.
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/Hope this helps you. Please do not hesitate to let us know if you need our assistance with anything else.
Thank you.
Hello,
Thank you for your response.
Currently using WP Fastest Cache with Cloudfare. The services are connected via cloudfare API.
The exclude rule in the plugin’s setting is enought in that case or i need o add the page rule on Cloudfare as well?
Regards!
Hello,
Cloudflare does not cache sitemaps by default. However, if you’ve made some changes in the settings that are causing sitemaps to be cached, you can set a page rule inside your Cloudflare account and add the following code snippet there:
sitemap?\.xml? [a-z0-9_\-]*sitemap[a-z0-9_\-]*\xml|xsl)? ([az0-9_\-]*?)sitemap([a-z0-9_\-]*)?.xml
The integration of
WP Fastest Cache Cloudflare
makes some changes in some settings of Cloudflare.You can read more about it here:
https://www.wpfastestcache.com/tutorial/wp-fastest-cache-cloudflare/Please let us know how that goes. Looking forward to helping you further.
Thank you
I did add a page rule, cache level:bypass /*sitemap* but it doesn’t seem to work
I tried to add this snippet, but there is no setting to add code in cloudfare settings.
Available settings are (refer at screenshots too):
-Always Online
-Always use Https
-Auto minify
-automatic https rewrites
-Browser cache ttl
-browser integrity check
-cache deception armor
-cache level
-disable apps
-disable performance
-disable security
-edge cahe ttl
-email obfuscation
-forwarding url
-ip geolocation header
-opportunistic encryption
-origin cache control
-rocket loader
-security level
-server side excludes
-ssli tried every single one of theme and no one lets me add code snippet
Hello,
The error that you’re seeing on the sitemap suggests that there is some white spaces or blank line in your wp-config.php file or your theme’s functions.php file.
I checked the source of the sitemap and there are two blank lines present:
You can remove the blank space/line from your functions.php and wp-config.php files to fix the issue.
Here’s a guide for a quick reference:
https://rankmath.com/kb/fix-sitemap-issues/#xml-text-declarationPlease let us know how that goes.
Thank you.
Hello,
i checked what you suggested and it seems that there was a problem with my theme’s child.
Switched to main theme and the sitemap was generated with no errors.Thanks a lot!!
I have another question.
On my store there are some products and product categories that i don’t want to be included on the sitemap or be indexed by any search engine.
If i go to sitemap seetings -> general -> exclude terms and paste the categories ID there it’s enought or i have to paste the categories and the products one by one???
And is this enought for indexing too, or i need to go to every product and add noindex?
Hello,
If you set the products and categories that you don’t want indexed to be set to
noindex
they will automatically be removed from the sitemaps.So we recommend that you do this approach to
noindex
any pages on your website.Don’t hesitate to get in touch if you have any other questions.
I set noindex to the product categories, that means that the products that belong to these categories will get no index as well (this is the desired result) or i should configure the noindex to each one of the products as well?
Regards!
Hello,
Setting product categories as noindex will only noindex the category archive pages, it will not affect the products related to those categories. You will have to set the products as noinex separately.
Hope this clarifies your doubts.
Please don’t hesitate to get in touch in case you need any other assistance.
Thanks.
Sure, i get it now.
Thank you for your help!
Regards!
Hello,
We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.
If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.
If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.
The ticket ‘sitemap error’ is closed to new replies.