Skip to content
Snippets Groups Projects
Commit 6a067b1e authored by Lukas Reschke's avatar Lukas Reschke
Browse files

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

parent a936107c
No related branches found
No related tags found
No related merge requests found
...@@ -434,8 +434,9 @@ class Setup { ...@@ -434,8 +434,9 @@ class Setup {
} }
// Add rewrite base // Add rewrite base
$webRoot = !empty(\OC::$WEBROOT) ? \OC::$WEBROOT : '/';
$content.="\n<IfModule mod_rewrite.c>"; $content.="\n<IfModule mod_rewrite.c>";
$content.="\n RewriteBase ".\OC::$WEBROOT; $content.="\n RewriteBase ".$webRoot;
$content .= "\n <IfModule mod_env.c>"; $content .= "\n <IfModule mod_env.c>";
$content .= "\n SetEnv front_controller_active true"; $content .= "\n SetEnv front_controller_active true";
$content.="\n </IfModule>"; $content.="\n </IfModule>";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment