Merge pull request #21020 from owncloud/add-directory-slash-to-setup-code
Add DirectorySlash to dynamic .htaccess write
This commit is contained in:
commit
86bd95ea1b
|
@ -50,9 +50,6 @@
|
||||||
|
|
||||||
# Rewrite rules for `front_controller_active`
|
# Rewrite rules for `front_controller_active`
|
||||||
Options -MultiViews
|
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/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]
|
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)$
|
RewriteCond %{REQUEST_FILENAME} !\.(css|js|svg|gif|png|html|ttf|woff)$
|
||||||
|
|
|
@ -439,6 +439,9 @@ class Setup {
|
||||||
$content.="\n RewriteBase ".$webRoot;
|
$content.="\n RewriteBase ".$webRoot;
|
||||||
$content .= "\n <IfModule mod_env.c>";
|
$content .= "\n <IfModule mod_env.c>";
|
||||||
$content .= "\n SetEnv front_controller_active true";
|
$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>";
|
||||||
$content.="\n</IfModule>";
|
$content.="\n</IfModule>";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue