Initial Commit
This commit is contained in:
commit
67767e3faa
11 changed files with 343 additions and 0 deletions
9
views/https.php
Normal file
9
views/https.php
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
//If the HTTPS is not found to be "on"
|
||||
if(!isset($_SERVER["HTTPS"]) || $_SERVER["HTTPS"] != "on")
|
||||
{
|
||||
//Tell the browser to redirect to the HTTPS URL.
|
||||
header("Location: https://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"], true, 301);
|
||||
//Prevent the rest of the script from executing.
|
||||
exit;
|
||||
}
|
Reference in a new issue