Merge pull request #21020 from owncloud/add-directory-slash-to-setup-code

Add DirectorySlash to dynamic .htaccess write
This commit is contained in:
Thomas Müller 2015-12-11 11:40:32 +01:00
commit 86bd95ea1b
2 changed files with 3 additions and 3 deletions

View File

@ -50,9 +50,6 @@
# Rewrite rules for `front_controller_active`
Options -MultiViews
<IfModule mod_dir.c>
DirectorySlash off
</IfModule>
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)$

View File

@ -439,6 +439,9 @@ class Setup {
$content.="\n RewriteBase ".$webRoot;
$content .= "\n <IfModule mod_env.c>";
$content .= "\n SetEnv front_controller_active true";
$content .= "\n <IfModule mod_dir.c>";
$content .= "\n DirectorySlash off";
$content .= "\n </IfModule>";
$content.="\n </IfModule>";
$content.="\n</IfModule>";