added a .htaccess redirect instead of doing it in the script. site seems to work again now
This commit is contained in:
1 parent
5a8ab4e541
commit
72377371d6
2 files changed
+8
-5
No files matched your search
@@ -0,0 +1,3 @@
|
||||
RewriteEngine On
|
||||
RewriteCond %{SERVER_PORT} 80
|
||||
RewriteRule ^(.*)$ https://www.studentersamfundet.no/inside/$1 [R,L]
|
||||
+5
-5
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user