http和https的转化问题?
//将访问协议强制转化为https
if ( !isset($_SERVER['HTTPS']) ||
strtolower($_SERVER['HTTPS']) != 'on' ) {
header ('Location: https://'.
$_SERVER['HTTP_HOST'].
$_SERVER['REQUEST_URI']);
exit();
}
不知道我这么写有什么问题?为什么不当不能转化为https协议,还是网页都打不开。
各位朋友帮我看看呀。