feat: add "raw" dir to directory, make it indexable

This commit is contained in:
David Bailey 2023-12-11 16:18:01 +01:00
parent 53fc1fac5a
commit de2dea4b18
2 changed files with 17 additions and 1 deletions

View file

@ -1,6 +1,20 @@
AddType text/plain .md
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/?static/.*
RewriteCond %{REQUEST_URI} !^/?(static|raw)/.*
RewriteRule (.*) router.php
Allow from all
Options +Indexes
<filesMatch ".(flv|gif|ico|jpg|jpeg|mp4|mpeg|png|svg|swf|webp)$">
Header set Cache-Control "max-age=315360, public"
</filesMatch>
<filesMatch ".(js)$">
Header set Cache-Control "max-age=315360, public"
</filesMatch>

View file

@ -1,5 +1,7 @@
Allow from all
Options +Indexes
<filesMatch ".(flv|gif|ico|jpg|jpeg|mp4|mpeg|png|svg|swf|webp)$">
Header set Cache-Control "max-age=315360, public"
</filesMatch>