mirror of
https://github.com/sigmasternchen/PHPTools
synced 2025-03-14 23:38:55 +00:00
added force https file
This commit is contained in:
parent
29af93f8b1
commit
82250ae038
1 changed files with 6 additions and 0 deletions
6
modules/general/ForceHTTPS.php
Normal file
6
modules/general/ForceHTTPS.php
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
if(!isset($_SERVER['HTTPS']) || ($_SERVER['HTTPS'] != "on")) {
|
||||
header("LOCATION: https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
|
||||
die();
|
||||
}
|
||||
?>
|
Loading…
Reference in a new issue