url.rewrite = (
"^(.*)/topic-(.+)\.html$" => "$1/portal.php?mod=topic&topic=$2&%1",
"^(.*)/article-([0-9]+)-([0-9]+)\.html$" => "$1/portal.php?mod=view&aid=$2&page=$3&%1",
"^(.*)/forum-(\w+)-([0-9]+)\.html$" => "$1/forum.php?mod=forumdisplay&fid=$2&page=$3&%1",
"^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$" => "$1/forum.php?mod=viewthread&tid=$2&extra=page\%3D$4&page=$3&%1",
"^(.*)/group-([0-9]+)-([0-9]+)\.html$" => "$1/forum.php?mod=group&fid=$2&page=$3&%1",
"^(.*)/space-(username|uid)-(.+)\.html$" => "$1/home.php?mod=space&$2=$3&%1",
"^(.*)/blog-([0-9]+)-([0-9]+)\.html$" => "$1/home.php?mod=space&uid=$2&do=blog&id=$3&%1",
"^(.*)/(fid|tid)-([0-9]+)\.html$" => "$1/archiver/index.php?action=$2&value=$3&%1",
"^(.*)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$" => "$1/plugin.php?id=$2:$3&%1"
)
Lighttpd下Discuz! X3的伪静态规则,原创测试可用。
最新推荐文章于 2022-09-03 18:39:27 发布
Lighttpd下Discuz!伪静态规则:
实验程序:
Discuz!
X3.3:
列表地址:
帖子地址:
最终Lighttpd下,
Discuz!
X3.3,
URL伪静态
规则如下: