Fixed redirect in index.php so that inside uses ssl
This commit is contained in:
1 parent
12c371f376
commit
c71d5f5b4c
1 file changed
+8
@@ -1,5 +1,13 @@
|
||||
<?php
|
||||
|
||||
$url = $_SERVER['SCRIPT_URI'];
|
||||
if(substr($url, 0, 5) != 'https')
|
||||
{
|
||||
$newurl = str_replace('http://','https://',$url);
|
||||
header("Location: $newurl");
|
||||
die;
|
||||
}
|
||||
|
||||
$time_start = microtime(true);
|
||||
|
||||
require_once "includes.php";
|
||||
|
||||
Reference in new issue
Block a user