Remove explicit URLs from robots.txt
Rely instead on the `robots` metatag on the respective pages
This commit is contained in:
parent
8d724277b0
commit
54aaca3087
1 changed files with 1 additions and 4 deletions
|
@ -1,11 +1,8 @@
|
|||
{% if SEO_INDEX %}
|
||||
User-agent: *
|
||||
{% if SEO_INDEX %}
|
||||
Allow: /
|
||||
{% else %}
|
||||
User-agent: *
|
||||
Disallow: /
|
||||
{% endif %}
|
||||
|
||||
Disallow: {% url "wagtailadmin_home" %}
|
||||
Disallow: {% url "api:index" %}
|
||||
Sitemap: {{ sitemap }}
|
||||
|
|
Loading…
Reference in a new issue