aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2015-07-26 22:53:23 +0200
committerfilip <filip.komar@gmail.com>2015-07-26 22:53:23 +0200
commit8f203863b0fb25675797fcdb8fece084ba76847f (patch)
treebf02a39de4325f6a38aba4321a03ecbe7cbfd61d /index.php
parent25b4f6672f1a19992601a0646961fde043732340 (diff)
downloadwww-8f203863b0fb25675797fcdb8fece084ba76847f.tar
www-8f203863b0fb25675797fcdb8fece084ba76847f.tar.gz
www-8f203863b0fb25675797fcdb8fece084ba76847f.tar.bz2
www-8f203863b0fb25675797fcdb8fece084ba76847f.tar.xz
www-8f203863b0fb25675797fcdb8fece084ba76847f.zip
fix of default to https
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 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'])) {