Thinkphp5中常见的伪静态写法

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

常见的ThinkPHP5开发的CMS均可适用,如MACCMS V10。