location @rewrite {
//如果有admin.php 文件,重写
rewrite ^/admin.php(.*)$ /admin.php?s=$1 last;
//如果有 index.php 文件 ,重写
rewrite ^/index.php(.*)$ /index.php?s=$1 last;
//重写到 index.php
rewrite . /index.php?s=$uri last;
}
if (!-e $request_filename) {
rewrite ^/EApi(.*)$ /EApi/index.php?s=$1 last;
rewrite ^(.*)$ /index.php?s=$1 last;
#rewrite ^(.*)$ /EApi/index.php?s=$1 last;
#rewrite ^EApi(.*)$ /EApi/index.php?s=$1 last;
break;
}