diff options
author | Stephan Köninger <github@stekoe.de> | 2016-03-10 23:08:56 +0100 |
---|---|---|
committer | Stephan Köninger <github@stekoe.de> | 2016-03-10 23:08:56 +0100 |
commit | 73a7c45dd413d2db360ac04fa99d7174de491f85 (patch) | |
tree | 6771f757472fe626effcace46730a1f366b26968 /.htaccess | |
parent | d8ba3a8944d924eedebb5f0c193ccd5493a09ba4 (diff) | |
download | nextcloud-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-- | .htaccess | 2 |
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 |