added a .htaccess redirect instead of doing it in the script. site seems to work again now

This commit is contained in:
glium337 committed 2011-03-01 23:29:56 +01:00
1 parent 5a8ab4e541
commit 72377371d6
2 files changed
+8 -5

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.studentersamfundet.no/inside/$1 [R,L]
+5 -5
View File
@@ -1,10 +1,10 @@
<?php
if(!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] != 'on')
{
header("Location: https://www.studentersamfundet.no{$_SERVER['REQUEST_URI']}");
die;
}
#if(!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] != 'on')
#{
# header("Location: https://www.studentersamfundet.no{$_SERVER['REQUEST_URI']}");
# die;
#}
$time_start = microtime(true);