1,thinkphp 如何实现 "http://localhost/index.php?/模块/操作&quo... 变为 "http://localhost/模块/操作"??
找到location / {
}位置然后添加红色字体代码
如下面:
location / {
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php?s=$1 last;
break;
}
index index.html index.htm index.php l.php;
#autoindex on;
}