作者:冲浪者科技 | 2023-02-13 | 热度:716 | 栏目:建站文库 | 收录:
if ($_SERVER["HTTPS"] <> "on"){$URLS="https://".$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];header("Location: ".$URLS);};
var url = window.location.href;if (url.indexOf("https") < 0) { url = url.replace("http:", "https:");window.location.replace(url);}
RewriteEngine onRewriteBase /usenkRewriteCond %{SERVER_PORT} !^443$RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
rewrite ^(.*)$ https://$host$1 permanent;
server { listen 80; server_name usenk.com; rewrite ^(.*)$ https://$host$1 permanent;}
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
冲浪者科技专注品牌网站建设,高端网站定制, 网站制作, 定制网站开发,网站改版升级,外贸网站建设,政府网站建设, 网站ipv6升级改造,网站SEO优化推广,小程序制作开发,400电话,企业邮箱,SSL证书安装等为一体的互联网整合营销一站式服务商。 咨询服务热线:173-7784-9589(微信同号)