aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-07-16 11:52:12 +0200
committerGitHub <noreply@github.com>2024-07-16 11:52:12 +0200
commitbcfe566accd5a0a7cc92a584642770f8c774ccfa (patch)
tree05e138a9ad2d0ca80a47aba1fa36b1f09da9b564 /lib/private
parent18c9f07ade56f61223605d86d22284eeef1f3024 (diff)
parent52e243f4d81d997fa3493f608c83c75fa36d8f5f (diff)
downloadnextcloud-server-bcfe566accd5a0a7cc92a584642770f8c774ccfa.tar.gz
nextcloud-server-bcfe566accd5a0a7cc92a584642770f8c774ccfa.zip
Merge pull request #46543 from nextcloud/fix/htaccess
fix(htaccess): Serve images as static assets
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Setup.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Setup.php b/lib/private/Setup.php
index a5683655447..a67d74bd032 100644
--- a/lib/private/Setup.php
+++ b/lib/private/Setup.php
@@ -481,7 +481,7 @@ class Setup {
$content .= "\n Options -MultiViews";
$content .= "\n RewriteRule ^core/js/oc.js$ index.php [PT,E=PATH_INFO:$1]";
$content .= "\n RewriteRule ^core/preview.png$ index.php [PT,E=PATH_INFO:$1]";
- $content .= "\n RewriteCond %{REQUEST_FILENAME} !\\.(css|js|mjs|svg|gif|png|html|ttf|woff2?|ico|jpg|jpeg|map|webm|mp4|mp3|ogg|wav|flac|wasm|tflite)$";
+ $content .= "\n RewriteCond %{REQUEST_FILENAME} !\\.(css|js|mjs|svg|gif|ico|jpg|jpeg|png|webp|html|ttf|woff2?|map|webm|mp4|mp3|ogg|wav|flac|wasm|tflite)$";
$content .= "\n RewriteCond %{REQUEST_FILENAME} !/core/ajax/update\\.php";
$content .= "\n RewriteCond %{REQUEST_FILENAME} !/core/img/(favicon\\.ico|manifest\\.json)$";
$content .= "\n RewriteCond %{REQUEST_FILENAME} !/(cron|public|remote|status)\\.php";