< ?php function redirectTohttps() { if($_SERVER[‘HTTPS’]!=”on”) { $redirect= “https://”.$_SERVER[‘HTTP_HOST’].$_SERVER[‘REQUEST_URI’]; header(“Location:$redirect”); } } ?>
Facebook Twitter Instagram LinkedIn