19 lines
486 B
Plaintext
19 lines
486 B
Plaintext
---
|
|
permalink: .htaccess
|
|
eleventyExcludeFromCollections: true
|
|
eleventyAllowMissingExtension: true
|
|
---
|
|
ErrorDocument 404 /404.html
|
|
|
|
<FilesMatch "\.(ico|svg|avif|webp|jpg|jpeg|png|gif|woff2)$">
|
|
Header set Cache-Control "max-age=31536000, public"
|
|
</FilesMatch>
|
|
<FilesMatch "\.(css|js)$">
|
|
Header set Cache-Control "no-cache, public"
|
|
</FilesMatch>
|
|
|
|
RewriteEngine on
|
|
|
|
# Block bad bots
|
|
RewriteCond %{HTTP_USER_AGENT} ({{ robots.htaccess }}) [NC]
|
|
RewriteRule .* https://nocommercialuse.org/ [L] |