diff options
Diffstat (limited to 'lib/private/setup.php')
-rw-r--r-- | lib/private/setup.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/private/setup.php b/lib/private/setup.php index 8f1ae389e45..1f91240e9da 100644 --- a/lib/private/setup.php +++ b/lib/private/setup.php @@ -432,6 +432,12 @@ class Setup { //custom 404 error page $content.= "\nErrorDocument 404 ".\OC::$WEBROOT."/core/templates/404.php"; } + + // Add rewrite base + $content.="\n<IfModule mod_rewrite.c>"; + $content.="\n RewriteBase ".\OC::$WEBROOT; + $content.="\n</IfModule>"; + if ($content !== '') { //suppress errors in case we don't have permissions for it @file_put_contents($setupHelper->pathToHtaccess(), $content . "\n", FILE_APPEND); |