📅  最后修改于: 2022-03-11 14:54:36.330000             🧑  作者: Mango
代码示例1
if($_SERVER["HTTPS"] != "on")
{
header("Location: https://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
exit();
}