关于AMH可视化界面的网站301问题

安装amrewrite添加规则使用就行,
这是kfyun.com域名301跳转到www.kfyun.com

Nginx规则:
if ($host = ‘demo.com’ ) {
rewrite ^/(.*)$ https://www.kfyun.com/$1 permanent;
}

Apache规则:
RewriteCond %{HTTP_HOST} ^kfyun.com [NC]
RewriteRule ^(.*)$ https://www.kfyun.com$1 [L,R=301]