Remove //tag/{slug}/ & /author/{slug}/ from sitemap

I want that the tag and author pages do not appear in Google search result or any other search engines.
I have googled and found only one stackOverflow answer that suggests to remove //tag/{slug}/ & /author/{slug}/ from routes.yml.

If I do so, /author/{slug}/ from routes.yml urls are also disabled. But I don’t want to disable those urls. So how can I remove those two pages from sitemap.xml without changing any other configuration?

Are there any other way to exclude tags and authors from Google search result?

Not including a page in a sitemap does not guarantee it won’t be indexed. If you want to prevent it from being indexed, you need to add a robots.txt that excludes it. Make sure you include the stuff in the current robots.txt file :slight_smile: