未分类 2017年12月2日

TP nginx 去除index.php

诸 诸天无道 约 2 分钟 3049 次阅读
location / {
            if (!-e $request_filename) {
               rewrite ^/index.php(.*)$ /index.php?s=$1 last;
               rewrite ^(.*)$ /index.php?s=$1 last;
               break;
             }
        }


评论 0

还没有评论,来说两句吧~

发表评论

评论将直接显示
目录