Improved rewrite rule
As per https://github.com/owncloud/core/issues/23098 and https://github.com/owncloud/core/issues/23117
This commit is contained in:
parent
b502667f3a
commit
3e8decf5e9
|
@ -423,7 +423,7 @@ class Setup {
|
||||||
// Add rewrite base
|
// Add rewrite base
|
||||||
$webRoot = !empty(\OC::$WEBROOT) ? \OC::$WEBROOT : '/';
|
$webRoot = !empty(\OC::$WEBROOT) ? \OC::$WEBROOT : '/';
|
||||||
$content .= "\n<IfModule mod_rewrite.c>";
|
$content .= "\n<IfModule mod_rewrite.c>";
|
||||||
$content .= "\n RewriteRule .* index.php [PT,E=PATH_INFO:$1]";
|
$content .= "\n RewriteRule . index.php [PT,E=PATH_INFO:$1]";
|
||||||
$content .= "\n RewriteBase ".$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";
|
||||||
|
|
Loading…
Reference in New Issue