Remove explicit URLs from robots.txt

Rely instead on the `robots` metatag on the respective pages
This commit is contained in:
Jake Howard 2024-05-26 15:45:58 +01:00
parent 8d724277b0
commit 54aaca3087
Signed by: jake
GPG Key ID: 57AFB45680EDD477

View File

@ -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 }}