Allow index page in robots.txt

This commit is contained in:
! 2022-05-22 18:37:28 +02:00
parent 0037f5f231
commit 2554cf7b97

View file

@ -7,7 +7,7 @@ from mainsite.models import Publication, PublicationYear, SiteConfiguration
def robots_view(request): def robots_view(request):
""" Robots.txt view """ """ Robots.txt view """
body = "User-Agent: *\nDisallow: /\n" body = "User-Agent: *\nDisallow: /\nAllow: /$\n"
return HttpResponse(body, content_type="text/plain") return HttpResponse(body, content_type="text/plain")