pfdiy
发表于 2017-8-24 08:51:14
:Q:Q:Q:Q:Q
pfdiy
发表于 2017-8-24 21:45:38
:):):):):)
521vps
发表于 2017-8-24 22:20:39
location / {
if ($host = 'xx.com' ) {
rewrite ^/(.*)$ https://www.xx.com/$1 permanent;
}
if ($server_port = 80) {
return 301 https://$server_name$request_uri;
}
if ($scheme = http) {
return 301 https://$server_name$request_uri;
}
error_page 497 https://$server_name$request_uri;
index index.html index.php;
if (-f $request_filename/index.html){
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
rewrite (.*) /index.php;
}
}
amh nginx 下我用的规则 自己改下上半部分 确认可行
jker
发表于 2017-8-24 22:24:17
不懂,看的头晕
pfdiy
发表于 2017-8-25 10:31:06
:lol:lol:lol:lol