首页 > 精选文章 > PHP > 正文

Nginx下DISCUZ的REWRITE

         rewrite ^(.*)/archiver/((fid|tid)-[w-]+.html)$ $1/archiver/index.php?$2 last;
         rewrite ^(.*)/forum-([0-9]+)-([0-9]+).html$ $1/forumdisplay.php?fid=$2&page=$3 last;
         rewrite ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+).html$ $1/viewthread.php?tid=$2&extra=page%3D$4&page=$3 last;
         rewrite ^(.*)/profile-(username|uid)-(.+).html$ $1/viewpro.php?$2=$3 last;
         rewrite ^(.*)/space-(username|uid)-(.+).html$ $1/space.php?$2=$3 last;
         rewrite ^(.*)/tag-(.+).html$ $1/tag.php?name=$2 last;
  • 上一篇:如何寻找优秀程序员
  • 下一篇:Nginx 0.6.31 + PHP 5.2.6(FastC
  • 了解这些字:下的意思 的的意思