diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-14 18:14:21 +0300 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-14 18:14:21 +0300 |
commit | a09ffb274b1047980cec530bee8cdb3f77aace3c (patch) | |
tree | 1de259a35b820382cbd9568e6ef10382132f176d /lib | |
parent | 2609bf35000b2a62de722e1d2249945fae144857 (diff) | |
parent | bd17cc793c48629ebc8a3ef0084d7acff6077460 (diff) |
Merge pull request #23065 from owncloud/stable9-add-rewrite-rules-after-setup
[stable9] Add base rewrite rule only when RewriteBase is defined
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/setup.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/setup.php b/lib/private/setup.php index b9f8828227e..5988a0b2d1d 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>"; |