配置文件里增加:
location / {
if ( !-e $request_filename ) {
rewrite ^(.*)$ /index.php?s=/$1 last;
break;
}
}
未经允许不得转载:天宝寺||陈瑞轩 » lnmp thinkphp5 404 解决方法
配置文件里增加:
location / {
if ( !-e $request_filename ) {
rewrite ^(.*)$ /index.php?s=/$1 last;
break;
}
}
未经允许不得转载:天宝寺||陈瑞轩 » lnmp thinkphp5 404 解决方法