Remove robots.txt blocked URLs from sitemap
-
Hi,
Thanks for a great plugin! I’m enjoying using it.
I’m also using WooCommerce and have a static robots.txt file that I created which includes a few directories I don’t want crawled. Here is an example of my robots.txt:
User-agent: * Disallow: /cart/ Disallow: /checkout/ Disallow: /my-account/ Disallow: /*add-to-cart=* Disallow: /?s= Disallow: /search/ Sitemap: https://thedadlands.io/sitemap.xml
However, I’m getting warnings from Google that say “Sitemap contains urls which are blocked by robots.txt.” Is there any way to add exclusions to the generated sitemap.xml file?
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Remove robots.txt blocked URLs from sitemap’ is closed to new replies.