From de2dea4b18ad630888c8a6d42ca582e9899838f6 Mon Sep 17 00:00:00 2001 From: David Bailey Date: Mon, 11 Dec 2023 16:18:01 +0100 Subject: [PATCH] feat: add "raw" dir to directory, make it indexable --- www/.htaccess | 16 +++++++++++++++- www/static/.htaccess | 2 ++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/www/.htaccess b/www/.htaccess index 094dd6c..6c5dbf4 100644 --- a/www/.htaccess +++ b/www/.htaccess @@ -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 + + + Header set Cache-Control "max-age=315360, public" + + + + Header set Cache-Control "max-age=315360, public" + \ No newline at end of file diff --git a/www/static/.htaccess b/www/static/.htaccess index 5997760..1c117e2 100644 --- a/www/static/.htaccess +++ b/www/static/.htaccess @@ -1,5 +1,7 @@ Allow from all +Options +Indexes + Header set Cache-Control "max-age=315360, public"