PHPTools/modules/general/ForceHTTPS.php

7 lines
168 B
PHP
Raw Permalink Normal View History

2014-02-26 18:09:25 +00:00
<?php
if(!isset($_SERVER['HTTPS']) || ($_SERVER['HTTPS'] != "on")) {
header("LOCATION: https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
die();
}
?>