From 397cf2ea0e636878c996220ad62f21f877f14c38 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Mon, 2 Nov 2026 21:39:03 -1000 Subject: Stop robots.txt blocking files named blame Without the trailing slash the rules also matched any path segment that starts with blame or snapshot, such as /repo/tree/blame.c. Every link cgit makes to the two pages ends the name with a slash. --- assets/robots.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'assets') diff --git a/assets/robots.txt b/assets/robots.txt index 81f7779..207fc89 100644 --- a/assets/robots.txt +++ b/assets/robots.txt @@ -1,3 +1,3 @@ User-agent: * -Disallow: /*/snapshot -Disallow: /*/blame +Disallow: /*/snapshot/ +Disallow: /*/blame/ -- cgit 2.12.1