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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Robots "noindex" for archives_month and tag: URLs

Solved by Tim View solution

Started by Tim 4 years ago · 2 replies · 492 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 Thomas, 1 week ago
2 54 12 hours ago
Support · by Anna, 3 days ago
2 60 15 hours ago
Support · by Justin Young, 16 hours ago
1 30 15 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 57 5 days ago