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 · 618 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, 6 days ago
13 218 4 hours ago
Support · by gtx, 4 days ago
2 126 3 days ago
Support · by Anna, 2 weeks ago
9 300 3 days ago
Support · by TomW, 1 week ago
4 164 6 days ago
Support · by Anna, 1 week ago
4 172 7 days ago