lighttpd下discuz! x3的伪静态规则,原创测试可用。

Lighttpd下Discuz!伪静态规则:
实验程序:Discuz! X3.3:
列表地址:
Lighttpd下PHPWind9.0、Discuz X3、WordPress的伪静态规则,原创测试可用。 - 卡卡北 - 友声网的博客
帖子地址:

Lighttpd下PHPWind9.0、Discuz X3、WordPress的伪静态规则,原创测试可用。 - 卡卡北 - 友声网的博客


最终Lighttpd下,Discuz! X3.3,URL伪静态规则如下:

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"

)

其他链接:网易博客

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

Copyright 2019 友声网  Powered By Z-Blog Theme By 优美尚品

鲁ICP备15020090号