从网上抄的nginx的配置:
location / {
if (!-e $request_filename){
rewrite ^/(.*)$ /index.php?s=/$1 last;
}
}
现在可以通过http://127.0.0.1/index.php?s=Home/Show/abc访问,但是http://127.0.0.1/index.php/Home/Show/abc 或者是
http://127.0.0.1/Home/Show/abc
访问都是404错误,请问如何设置,在哪里设置才能访问,谢谢!