location / { if (!-e $request_filename) { rewrite ^/(.*)$ /index.php/$1 last; break; } } 转载于:https://www.cnblogs.com/xiaobiaomei/p/8966368.html