aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--index.php2
-rw-r--r--langs.inc.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/index.php b/index.php
index 6aa178cec..72f2913c6 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: //%s%s', $www_domain, $_SERVER['REQUEST_URI']));
+ header(sprintf('Location: %s://%s%s', 'https', $www_domain, $_SERVER['REQUEST_URI']));
die;
}
elseif (isset($_GET['fromtld'])) {
diff --git a/langs.inc.php b/langs.inc.php
index 4826b4ecf..5c18dd2dc 100644
--- a/langs.inc.php
+++ b/langs.inc.php
@@ -60,7 +60,7 @@ function domain_redirect($host, $domains_lang, $vhost)
} else {
$path = '?langs';
}
- header(sprintf('Location: %s://%s/%s', 'http', $vhost, $path));
+ header(sprintf('Location: %s://%s/%s', 'https', $vhost, $path));
die;
}