php 强制跳转到https
if(!isset($_SERVER['HTTPS'])||$_SERVER['HTTPS']=='off'){
header("HTTP/1.1 301 Moved Permanently");
header('Location:https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
}
if(!isset($_SERVER['HTTPS'])||$_SERVER['HTTPS']=='off'){
header("HTTP/1.1 301 Moved Permanently");
header('Location:https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
}