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
b315a5ee29
commit
bd17cc793c
|
@ -423,7 +423,7 @@ class Setup {
|
|||
// Add rewrite base
|
||||
$webRoot = !empty(\OC::$WEBROOT) ? \OC::$WEBROOT : '/';
|
||||
$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 <IfModule mod_env.c>";
|
||||
$content .= "\n SetEnv front_controller_active true";
|
||||
|
|
Loading…
Reference in New Issue