location / { if (!-e $request_filename){ rewrite ^/(.*) /index.php last; } } 未经允许不得转载:天宝寺||陈瑞轩 » yii2 nginx rewrite