mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Set RewriteBase to / if OC::WEBROOT is not set
This commit is contained in:
parent
a936107c5c
commit
6a067b1ec9
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue