nginx对于XXX.com和XXX.com/index给映射到www.xxx.com的方式
·
location / {
root C:/website;
index index.html index.htm index.php;
include C:/website/.htaccess;
if ($host !~ "
www.xincanzs .com") {
rewrite ^(.*)
http://www.x incanzs.com$ 1 redirect;
}
}
更多推荐
所有评论(0)