diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-12-01 22:03:25 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-12-01 22:03:25 +0100 |
commit | 6a067b1ec91ad6fcbb5ca2d9fcbe1f2786a75e07 (patch) | |
tree | 5eb343bcc4d94e7f164633834c8da2f52fa3222d | |
parent | a936107c5c6c514de38903c42dd09f3d6267524b (diff) | |
download | nextcloud-server-6a067b1ec91ad6fcbb5ca2d9fcbe1f2786a75e07.tar.gz nextcloud-server-6a067b1ec91ad6fcbb5ca2d9fcbe1f2786a75e07.zip |
Set RewriteBase to / if OC::WEBROOT is not set
-rw-r--r-- | lib/private/setup.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/setup.php b/lib/private/setup.php index 4a4b935df03..2c959622cc7 100644 --- a/lib/private/setup.php +++ b/lib/private/setup.php @@ -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>"; |