Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Robots "noindex" for archives_month and tag: URLs

Solved by Tim View solution

Started by Tim 4 years ago · 2 replies · 923 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 themetman, 1 day ago
6 74 6 hours ago
Support · by TomW, 2 weeks ago
8 286 4 days ago
Support · by alex, 3 months ago
8 703 4 days ago
Support · by Supple, 1 week ago
1 133 5 days ago
Support · by TomW, 2 weeks ago
3 208 6 days ago