Allow index page in robots.txt #8
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue