Set RewriteBase to / if OC::WEBROOT is not set
This commit is contained in:
parent
a936107c5c
commit
6a067b1ec9
|
@ -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>";
|
||||
|
|
Loading…
Reference in New Issue