nginx 重写 隐藏index.php

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

猜你喜欢

转载自www.cnblogs.com/zehao/p/nginx_hidden_index_page.html