summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-03-10 08:25:18 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-03-10 08:25:18 +0100
commit308c99f1fd7ee82348232e93d1a6bae32ad0afa7 (patch)
tree6485b1729c426a2c3eb6f9a564763fa7f3617b8b /lib
parent845a45ae4a81916611d1ba296fe22732210fd440 (diff)
parentbc4a043a7645efe207e3f1208ac3dea41b056384 (diff)
downloadnextcloud-server-308c99f1fd7ee82348232e93d1a6bae32ad0afa7.tar.gz
nextcloud-server-308c99f1fd7ee82348232e93d1a6bae32ad0afa7.zip
Merge pull request #23029 from owncloud/add-rewrite-rules-after-setup
Add base rewrite rule only when RewriteBase is defined
Diffstat (limited to 'lib')
-rw-r--r--lib/private/setup.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/setup.php b/lib/private/setup.php
index b9f8828227e..8a10a9cfbec 100644
--- a/lib/private/setup.php
+++ b/lib/private/setup.php
@@ -422,8 +422,9 @@ class Setup {
// Add rewrite base
$webRoot = !empty(\OC::$WEBROOT) ? \OC::$WEBROOT : '/';
- $content.="\n<IfModule mod_rewrite.c>";
- $content.="\n RewriteBase ".$webRoot;
+ $content .= "\n<IfModule mod_rewrite.c>";
+ $content .= "\n RewriteRule .* index.php [PT,E=PATH_INFO:$1]";
+ $content .= "\n RewriteBase ".$webRoot;
$content .= "\n <IfModule mod_env.c>";
$content .= "\n SetEnv front_controller_active true";
$content .= "\n <IfModule mod_dir.c>";