From 2ee497f233166212ea31439c64272b22fc0d2f4e Mon Sep 17 00:00:00 2001 From: filip Date: Mon, 13 Jun 2016 01:25:30 +0200 Subject: ligher server load with redirection adding some 'die' instructions after header('Location: ... --- index.php | 1 + 1 file changed, 1 insertion(+) (limited to 'index.php') diff --git a/index.php b/index.php index 63c4c5f7e..ba5af2ea2 100644 --- a/index.php +++ b/index.php @@ -23,6 +23,7 @@ elseif (isset($_GET['fromtld'])) { elseif (isset($_SERVER['APP_MODE']) && $_SERVER['APP_MODE'] !== 'prod') { // don't change domain in developer mode header(sprintf('Location: //%s%s', $_SERVER['SERVER_NAME'], $_SERVER['REQUEST_URI'])); + die; } elseif (G_VHOST != $www_domain) { // rewrite "//mageia.it/" to "//www.mageia.org/it/" -- cgit v1.2.1