From 2554cf7b97232ea81e93e02f83be6825c181994d Mon Sep 17 00:00:00 2001 From: ! Date: Sun, 22 May 2022 18:37:28 +0200 Subject: [PATCH] Allow index page in robots.txt --- mainsite/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainsite/views.py b/mainsite/views.py index c5e4652..07254d4 100644 --- a/mainsite/views.py +++ b/mainsite/views.py @@ -7,7 +7,7 @@ from mainsite.models import Publication, PublicationYear, SiteConfiguration def robots_view(request): """ Robots.txt view """ - body = "User-Agent: *\nDisallow: /\n" + body = "User-Agent: *\nDisallow: /\nAllow: /$\n" return HttpResponse(body, content_type="text/plain") -- 2.47.0