Set RewriteBase to / if OC::WEBROOT is not set

This commit is contained in:
Lukas Reschke 2015-12-01 22:03:25 +01:00
parent a936107c5c
commit 6a067b1ec9
1 changed files with 2 additions and 1 deletions

View File

@ -434,8 +434,9 @@ class Setup {
}
// Add rewrite base
$webRoot = !empty(\OC::$WEBROOT) ? \OC::$WEBROOT : '/';
$content.="\n<IfModule mod_rewrite.c>";
$content.="\n RewriteBase ".\OC::$WEBROOT;
$content.="\n RewriteBase ".$webRoot;
$content .= "\n <IfModule mod_env.c>";
$content .= "\n SetEnv front_controller_active true";
$content.="\n </IfModule>";