lighttpd下discuz! x3的伪静态规则,原创测试可用。
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"
)
其他链接:网易博客