2024-07-28 12:05:50 +00:00
|
|
|
---
|
|
|
|
permalink: .htaccess
|
|
|
|
eleventyExcludeFromCollections: true
|
2024-10-01 05:13:46 +00:00
|
|
|
eleventyAllowMissingExtension: true
|
2024-07-28 12:05:50 +00:00
|
|
|
---
|
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-10-05 08:18:35 +00:00
|
|
|
RewriteCond %{HTTP_USER_AGENT} ({{ robots.htaccess }}) [NC]
|
2024-08-19 16:23:00 +00:00
|
|
|
RewriteRule .* https://nocommercialuse.org/ [L]
|