if(!isset($_SERVER["HTTPS"])) { $self_link = "https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; header('Location: '.$self_link); } ?>