Skip to content
Snippets Groups Projects
Commit 3661b47b authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #23124 from owncloud/improved-rewrite-rule

Improved rewrite rule
parents f6a5fe45 3e8decf5
No related branches found
No related tags found
No related merge requests found
...@@ -423,7 +423,7 @@ class Setup { ...@@ -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";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment