Commit 2554cf7b authored by !'s avatar !
Browse files

Allow index page in robots.txt

parent 0037f5f2
......@@ -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")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment