西数超哥博客
运维经验教程分享

WordPress博客程序Nginx下伪静态规则代码

WordPress博客程序Nginx下伪静态规则代码

  1. location / {
  2. if (-f $request_filename/index.html){
  3. rewrite (.*) $1/index.html break;
  4. }
  5. if (-f $request_filename/index.php){
  6. rewrite (.*) $1/index.php;
  7. }
  8. if (!-f $request_filename){
  9. rewrite (.*) /index.php;
  10. }
  11. }
赞(0)
声明:本站发布的内容(图片、视频和文字)以原创、转载和分享网络内容为主,若涉及侵权请及时告知,将会在第一时间删除。本站原创内容未经允许不得转载:西数超哥博客 » WordPress博客程序Nginx下伪静态规则代码