在网站配置文件里 location / { if ( !-e $request_filename) { rewrite ^/(.*)$ /index.php/$1 last; break; } } 版权所有丨如未注明 , 均为原创 , 转载请注明thinkphp5宝塔nginx404 配置! 喜欢 (6)