多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
以下是PHP实现,其实可 <?php function get_http_s(){ $top = 'http'; if($_SERVER['SERVER_PORT'] == 443 || $_SERVER['HTTPS'] == 1 ||$_SERVER['HTTPS'] == 'on') $top = 'https'; return $top; } $r = get_http_s(); if($r != 'https') { header("Location: https://".$_SERVER['HTTP_HOST']); }