如果你用的是phpstudy,并且是 nginx 是服务器你需要做的是:
在phpstudy 中找到配置文件 nginx.conf 我的是这个,可能有的是 vhosts.conf 配置文件,只要替换下面这个就行了;
location / {
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
}
}
如果你用的是phpstudy,并且是 nginx 是服务器你需要做的是:
在phpstudy 中找到配置文件 nginx.conf 我的是这个,可能有的是 vhosts.conf 配置文件,只要替换下面这个就行了;
location / {
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
}
}