nginx-url重写

location /game_web{
if (!-e $request_filename){//请求不是文件或者目录
rewrite ^/game_web/(w*)/(w*)$ /game_web_dyn/index.php/$ 1/init/$2 last;
break;
}
}
原文地址:https://www.cnblogs.com/jdhu/p/4553464.html