Fixed redirect in index.php so that inside uses ssl

This commit is contained in:
oyvinbak committed 2010-09-25 22:03:17 +02:00
1 parent 12c371f376
commit c71d5f5b4c
1 file changed
+8
+8
View File
@@ -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";