Answers for "force ssl to website php"

PHP
0

php force to ssl

if($_SERVER["HTTPS"] != "on")
{
    header("Location: https://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
    exit();
}
Posted by: Guest on December-18-2020

Browse Popular Code Answers by Language