Nginx: Changed inefficient RegEx redirect to equivalent 301

This commit is contained in:
Johannes Feichtner
2015-09-20 15:23:20 +02:00
parent 3b9201fb91
commit 4692d7ef2a

View File

@@ -427,7 +427,7 @@ class nginx extends HttpConfigBase {
if (substr($uri, -1) == '/') {
$uri = substr($uri, 0, -1);
}
$vhost_content .= "\t".'rewrite ^(.*) '.$uri.'$1 permanent;'."\n";
$vhost_content .= "\t".'return 301 '.$uri.'$request_uri;'."\n";
} else {
mkDirWithCorrectOwnership($domain['customerroot'], $domain['documentroot'], $domain['guid'], $domain['guid'], true);