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 · 553 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 BenLaKnet, 5 days ago
1 122 2 days ago
Support · by BenLaKnet, 1 week ago
5 195 2 days ago
Support · by kskt, 3 days ago
0 44 3 days ago
Support · by David Meissner, 3 days ago
0 43 3 days ago
Support · by David Meissner, 4 days ago
3 92 3 days ago