summaryrefslogtreecommitdiffstats
path: root/.htaccess
diff options
context:
space:
mode:
authorStephan Köninger <github@stekoe.de>2016-03-10 23:08:56 +0100
committerStephan Köninger <github@stekoe.de>2016-03-10 23:08:56 +0100
commit73a7c45dd413d2db360ac04fa99d7174de491f85 (patch)
tree6771f757472fe626effcace46730a1f366b26968 /.htaccess
parentd8ba3a8944d924eedebb5f0c193ccd5493a09ba4 (diff)
downloadnextcloud-server-73a7c45dd413d2db360ac04fa99d7174de491f85.tar.gz
nextcloud-server-73a7c45dd413d2db360ac04fa99d7174de491f85.zip
Allow jpg files to be statically served
When using an background image in themes of type JPG, the current setting of owncloud's htaccess file does not allow to deliver these kinds of images as static content. Adding the file extensions as done in this commit, it works flawlessly.
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess2
1 files changed, 1 insertions, 1 deletions
diff --git a/.htaccess b/.htaccess
index 085467e91ca..cddbd4f47de 100644
--- a/.htaccess
+++ b/.htaccess
@@ -53,7 +53,7 @@
Options -MultiViews
RewriteRule ^core/js/oc.js$ index.php/core/js/oc.js [PT,E=PATH_INFO:$1]
RewriteRule ^core/preview.png$ index.php/core/preview.png [PT,E=PATH_INFO:$1]
- RewriteCond %{REQUEST_FILENAME} !\.(css|js|svg|gif|png|html|ttf|woff|ico)$
+ RewriteCond %{REQUEST_FILENAME} !\.(css|js|svg|gif|png|html|ttf|woff|ico|jpg|jpeg)$
RewriteCond %{REQUEST_FILENAME} !core/img/favicon.ico$
RewriteCond %{REQUEST_FILENAME} !/remote.php
RewriteCond %{REQUEST_FILENAME} !/public.php