remove Blog /tag URLs from Search Engine indexation
SOLVE
Hey guys,
as the title says -a client wants to remove all /tag URLs from a specific blog from indexing. Is there a "simple" way to achieve this? I know that you can "globaly" add
<meta name="robots" content="noindex,nofollow">
in Settings->Website->Blog->templates to the blog posting and blog listing templates but as he wants to remove only the /tag URLs neither of those two would work. Adding this to the "blog posting" header wouldn't help and adding the code to the listing view would also affect the default listing view - what's not the goal here.
I've told him about the solution with a custom robots.txt, but he's now happy about that. Excluding the /tag/* URLs in the Google Search Console is also not an option as it'll only affect the google results(who knows which other Search Engine the user uses).
Does anyone have a solution or idea how to achieve this?
Note: The client also told me that he want's a userfriendly and "easly scaleable" solution.
Aug 22, 20228:48 AM - edited Aug 22, 20229:08 AM
Participant
remove Blog /tag URLs from Search Engine indexation
SOLVE
Hi Anton,
I am trying to do the same, but I'm having some trouble. Does this code need to go into our blog listing template or the original HubSpot version?
Thanks,
Neal
Edit
This code worked like a charm - our template used a base html file for headers and footers, so I just needed to apply this code in there, rather than the blog template specifically. Works great. Thanks to Alyssa and Anton.