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