帝国CMS使用栏目名称进行伪静态,如何写服务器的伪静态配置

假设:帝国CMS有多个栏目,假设后台栏目名称为:bianchen/
想要结果:伪静态栏目链接设置为:bianchen/ 文章链接为:bianchen/ID.hmtl
这种该如何的去实现呢?

去给服务器配置伪静态规则,你的服务器用的是nginx,对应的伪静态规则如下

rewrite ^([^.]*)/listinfo-([0-9]+)-([0-9]+).html$ $1/e/action/ListInfo/index.php?classid=$2&page=$3 last;
rewrite ^([^.]*)/showinfo-([0-9]+)-([0-9]+)-([0-9]+).html$ $1/e/action/ShowInfo.php?classid=$2&id=$3&page=$4 last;
rewrite ^([^.]*)/infotype-([0-9]+)-([0-9]+).html$ $1/e/action/InfoType/index.php?ttid=$2&page=$3 last;
rewrite ^([^.]*)/tags-(.+?)-([0-9]+).html$ $1/e/tags/index.php?tagname=$2&page=$3 last;
if (!-e $request_filename) {
return 404;
}