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