<?php
if ($_SERVER["HTTPS"] <> "on")
{
$xredir = "https://".$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
header("Location: ".$xredir);
}
?>
直接将上面的代码添加至你的模板里的 header.php 文件的顶部即可。
<?php
if ($_SERVER["HTTPS"] <> "on")
{
$xredir = "https://".$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
header("Location: ".$xredir);
}
?>
直接将上面的代码添加至你的模板里的 header.php 文件的顶部即可。
很强势
666666666@(真棒)
@(滑稽)必须的。