当前位置:首页 > Server > 正文内容

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

admin2017-02-10Server2340
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"

)

其他链接:网易博客

打赏

扫描二维码推送至手机访问。

版权声明:本文由友声网博客发布,如需转载请注明出处。

本文链接:https://hi.ys166.com/t/567

分享给朋友:

发表评论

访客

看不清,换一张

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