宝塔 thinkPHP5 nginx 站点配置 伪静态

location / {
if (!-e $request_filename){
rewrite  ^(.*)$  /index.php?s=$1  last;   break;
}
}


tp3.2 nginx 伪静态

location / {
        if (!-e $request_filename) {
            rewrite ^/index.php(.*)$ /index.php?s=$1 last;
            rewrite  ^(.*)$  /index.php?s=$1  last;
            #rewrite  ^(.*)$  /index.php$1 break;
            break;
    }
 }