diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-12-01 19:55:16 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-12-01 19:57:03 +0100 |
commit | f87dca95f162e66347fced32e7c333409b0e9012 (patch) | |
tree | 9c0a9639e45294a143fa64af058fe0d196808853 | |
parent | 002e7197890221d9a24dc987f7a02a958bf3e4c7 (diff) | |
download | nextcloud-server-f87dca95f162e66347fced32e7c333409b0e9012.tar.gz nextcloud-server-f87dca95f162e66347fced32e7c333409b0e9012.zip |
Disable MultiView + DirectorySlash
Required for routes that might otherwise collide with existing folders on the system
-rw-r--r-- | .htaccess | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.htaccess b/.htaccess index d82cb8ade17..5401320d577 100644 --- a/.htaccess +++ b/.htaccess @@ -45,6 +45,11 @@ RewriteRule ^(\.|autotest|occ|issue|indie|db_|console).* - [R=404,L] # Rewrite rules for `front_controller_active` + SetEnv front_controller_active true + Options -MultiViews + <IfModule mod_dir.c> + DirectorySlash off + </IfModule> RewriteRule ^core/js/oc.js$ index.php [PT,E=PATH_INFO:$1] RewriteRule ^core/preview.png$ index.php [PT,E=PATH_INFO:$1] RewriteCond %{REQUEST_FILENAME} !\.(css|js|svg|gif|png|html|ttf|woff)$ @@ -56,7 +61,6 @@ RewriteCond %{REQUEST_FILENAME} !/ocs/v1.php RewriteCond %{REQUEST_FILENAME} !/ocs/v2.php RewriteRule .* index.php [PT,E=PATH_INFO:$1] - </IfModule> <IfModule mod_mime.c> AddType image/svg+xml svg svgz |