溜追
溜追
Published on 2020-07-26 / 209 Visits
0
0

PHP自动跳转https代码

//自动跳转https
 if(!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] != 'on' ){
    header('Location: https://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']);exit();
}


Comment