刚开始用6kbbs,感觉还不错,6kbbs安装包带的是win伪静态规则,于是参照改了一份linux伪静态规则,华夏名网linux主机完全适用,其他主机不太清楚,感兴趣的朋友可以试试,如下↓
- rewrite "^(.*)/index\.html$" $1/index.php last;
- rewrite "^(.*)/forum-([0-9]+)(-([0-9]+))*\.html$" $1/forum.php?fid=$2&page=$4 last;
- rewrite "^(.*)/view-([0-9]+)(-([0-9]+))*\.html$" $1/view.php?tid=$2&page=$4 last;
- rewrite "^(.*)/user-([0-9]+)(-([0-9]+))*\.html$" $1/user.php?uid=$2&page=$4 last;
- rewrite "^(.*)/portal\.html$" $1/portal.php last;
- rewrite "^(.*)/list-([0-9]+)(-([0-9]+))*\.html$" $1/list.php?cid=$2&page=$4 last;
- rewrite "^(.*)/page-([0-9]+)(-([0-9]+))*\.html$" $1/page.php?pid=$2&page=$4 last;
- rewrite "^(.*)/article-([0-9]+)(-([0-9]+))*\.html$" $1/article.php?aid=$2&page=$4 last;