diff options
author | Filip Komar <filip@mageia.org> | 2013-08-03 14:32:17 +0000 |
---|---|---|
committer | Filip Komar <filip@mageia.org> | 2013-08-03 14:32:17 +0000 |
commit | d8ea13028062906aa996762a768a31361f4cba25 (patch) | |
tree | 90c8ce6d4673718f2f1ba6ef1a691928a8828696 | |
parent | a74c7f99e7653467fa2331b3fdd7bfe18ce732d1 (diff) | |
download | www-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.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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'])) { |