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?