周金峰的bolg

我的博文
thinkphp伪静态,二级目录伪静态
2020-3-11 10:52 Wednesday
location / {
 if (!-e $request_filename){
  rewrite  ^(.*)$  /index.php?s=$1  last;   break;
 }
}

#根目录下en目录下面的伪静态规则
location /en/ {
 if (!-e $request_filename){
  rewrite  ^/en/(.*)$  /en/index.php?s=$1  last;   break;
 }
}
┆ 阅读(176) ┆ 评论(0)
  发评论

Copyright © 2011-2013 Rights Reserved. 豫ICP备12017564号-1 新乡生活网