From d8ea13028062906aa996762a768a31361f4cba25 Mon Sep 17 00:00:00 2001 From: Filip Komar Date: Sat, 3 Aug 2013 14:32:17 +0000 Subject: scheme-relative URL fix for index.php --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 750ce878d..6aa178cec 100644 --- a/index.php +++ b/index.php @@ -13,7 +13,7 @@ $www_domain = 'www.' . $domain; if (G_VHOST == $domain) { // rewrite "//mageia.org/" to "//www.mageia.org/" header ('HTTP/1.1 301 Moved Permanently'); - header(sprintf('Location: http://%s%s', $www_domain, $_SERVER['REQUEST_URI'])); + header(sprintf('Location: //%s%s', $www_domain, $_SERVER['REQUEST_URI'])); die; } elseif (isset($_GET['fromtld'])) { -- cgit v1.2.1