:root{--puock-block-not-tran:100%}

浅谈AMH面板如何把http301到https

461次阅读
没有评论

共计 240 个字符,预计需要花费 1 分钟才能阅读完成。

1. 安装 url 重写模块 AMRewrite-1.0 并打开(如果已安装,则跳过此步骤)

2. 创建新的 AMRewrite 规则

nginx 规则:

if ($server_port = 80) { 

return 301 https://$host$request_uri; 

} 



apache 规则:

RewriteCond %{SERVER_PORT} 80 

RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R,L]

3. 选择好对应规则后,点击保存,并检测 AMRewrite 规则是否正确

正文完
 0
评论(没有评论)