From 6a067b1ec91ad6fcbb5ca2d9fcbe1f2786a75e07 Mon Sep 17 00:00:00 2001 From: Lukas Reschke <lukas@owncloud.com> Date: Tue, 1 Dec 2015 22:03:25 +0100 Subject: [PATCH] Set RewriteBase to / if OC::WEBROOT is not set --- lib/private/setup.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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>"; -- GitLab