Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

Robots "noindex" for archives_month and tag: URLs

Solved by Tim View solution

Started by Tim 4 years ago · 2 replies · 680 views
4 years ago

Good morning everyone,

is it possible to put a "noindex" to all archive pages (archives_month) and tag:* URLs?

I know that I can set the robots tag in the backend for pages but do not see a option for generated archives and tag URL.

Maybe something like this in the base.html.twig

<meta name="robots" content="whatever I set in the backend" & "for URLs that contain "archives_month" or "tag:" use "noindex, follow" />

Is it possible to do this?

Thanks!

4 years ago

Since you're interested in the tag URL parameter specifically, I would test for that as well.

Suggested topics

Topic Participants Replies Views Activity
Support · by Paul Hodges, 4 weeks ago
19 483 5 days ago
Support · by Lauw, 7 days ago
2 99 6 days ago
Support · by Anna, 2 weeks ago
4 426 1 week ago
Support · by gtx, 4 weeks ago
4 377 3 weeks ago
Support · by Anna, 1 month ago
9 483 3 weeks ago