php的网站
我想让其中一个页面走https 其他页面还是走http
CI的框架 现在是页面走了https 但是当我进https的页面后 在去别的页面的话 也都变成了https了
我想知道如何配置 网站就其中一个页面是https的 其他页面还是走http
我现在是直接用php判断跳转的
if ($_SERVER["HTTPS"] <> "on") {
$xredir = "https://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
header("Location: " . $xredir);
}
O(∩_∩)O谢谢
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
认证0级讲师