php ci nginx 伪静态rewrite配置方法

php ci nginx 伪静态rewrite配置方法

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

保存、退出重启nginx

原文地址:https://www.cnblogs.com/zdz8207/p/php-ci-rewrite-nginx.html