nginx 重写 隐藏index.php

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

 

posted @ 2018-11-21 15:06  澔如菸海  阅读(181)  评论(0编辑  收藏  举报