修改配置文件vhosts.conf:
在location / { } 中添加这段代码:
location / {
index index.php index.html;
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
break;
}
}
修改配置文件vhosts.conf:
在location / { } 中添加这段代码:
location / {
index index.php index.html;
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
break;
}
}