aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilip Komar <filip@mageia.org>2013-08-03 14:32:17 +0000
committerFilip Komar <filip@mageia.org>2013-08-03 14:32:17 +0000
commitd8ea13028062906aa996762a768a31361f4cba25 (patch)
tree90c8ce6d4673718f2f1ba6ef1a691928a8828696
parenta74c7f99e7653467fa2331b3fdd7bfe18ce732d1 (diff)
downloadwww-d8ea13028062906aa996762a768a31361f4cba25.tar
www-d8ea13028062906aa996762a768a31361f4cba25.tar.gz
www-d8ea13028062906aa996762a768a31361f4cba25.tar.bz2
www-d8ea13028062906aa996762a768a31361f4cba25.tar.xz
www-d8ea13028062906aa996762a768a31361f4cba25.zip
scheme-relative URL fix for index.php
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
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'])) {