1.nginx.conf中重写规则
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
break;
}
}
若不能,则在对应网站的nginx的网站.conf中
include thinkphp.conf;
thinkphp.conf一般是上述location内容
2.U方法地址不对
3.Page地址不对,因为里面有U方法获取路径,解决办法参考:
http://blog.csdn.net/fangdong88/article/details/78319820