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"
)

  本文源自: http://hi.ys166.com/read-567.html

最后,如果您想转载本人,请注明:本文源自 友声网 卡卡北
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值