2024-07-28 12:05:50 +00:00
|
|
|
---
|
|
|
|
permalink: .htaccess
|
|
|
|
eleventyExcludeFromCollections: true
|
|
|
|
---
|
2024-07-28 12:16:16 +00:00
|
|
|
ErrorDocument 404 /404.html
|
2024-07-28 12:05:50 +00:00
|
|
|
|
2024-08-04 09:58:06 +00:00
|
|
|
<FilesMatch "\.(ico|svg|avif|webp|jpg|jpeg|png|gif|woff2)$">
|
2024-07-28 12:05:50 +00:00
|
|
|
Header set Cache-Control "max-age=31536000, public"
|
2024-07-30 16:29:05 +00:00
|
|
|
</FilesMatch>
|
|
|
|
<FilesMatch "\.(css|js)$">
|
|
|
|
Header set Cache-Control "no-cache, public"
|
2024-08-19 16:23:00 +00:00
|
|
|
</FilesMatch>
|
|
|
|
|
2024-08-19 16:25:02 +00:00
|
|
|
RewriteEngine on
|
|
|
|
|
2024-08-19 16:23:00 +00:00
|
|
|
# Block bad bots
|
2024-08-20 18:17:28 +00:00
|
|
|
{% for bot in robots.htaccess -%}
|
|
|
|
RewriteCond %{HTTP_USER_AGENT} ({{ bot }}) [NC{% if not loop.last %},OR{% endif %}]
|
|
|
|
{% endfor -%}
|
2024-08-19 16:23:00 +00:00
|
|
|
RewriteRule .* https://nocommercialuse.org/ [L]
|