From 686b0a167d02c64b6f8cf3c1deebde1b11aa8058 Mon Sep 17 00:00:00 2001 From: James Collins Date: Wed, 22 Feb 2023 07:19:59 +1000 Subject: [PATCH] add case insentive and force download support --- public/.htaccess | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/public/.htaccess b/public/.htaccess index c1dbe5c..71ed5e2 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -3,6 +3,14 @@ Options -MultiViews -Indexes + + + + Header set Content-Disposition "attachment" + + + + RewriteEngine On # Add www subdomain if missing @@ -21,7 +29,7 @@ # Pass to media handler if the media request has query RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{QUERY_STRING} . - RewriteRule ^uploads/(.+)\.(jpg|png)$ media.php?url=uploads/$1.$2 [QSA,L] + RewriteRule ^uploads/(.+)\.(jpe?g|png)$ media.php?url=uploads/$1.$2 [NC,QSA,L] # Send Requests To Front Controller... RewriteCond %{REQUEST_FILENAME} !-d