湖中沉 发表于 2010-9-29 20:56:03

Discuz!X伪静态规则For lighttpd【解决名片为静态和DIY问题】

Discuz!X伪静态规则For lighttpd

url.rewrite-once = (
"^/topic-(.+)\.html\??(.*+)$" => "/portal.php?mod=topic&topic=$1&$2",
"^/article-(+)-(+)\.html\??(.*+)$" => "/portal.php?mod=view&aid=$1&page=$2&$3",
"^/forum-(\w+)-(+)\.html\??(.*+)$" => "/forum.php?mod=forumdisplay&fid=$1&page=$2&$3",
"^/thread-(+)-(+)-(+)\.html\??(.*+)$" => "/forum.php?mod=viewthread&tid=$1&extra=page%3D$3&page=$2&$4",
"^/group-(+)-(+)\.html\??(.*+)$" => "/forum.php?mod=group&fid=$1&page=$2&$3",
"^/space-(username|uid)-(.+)\.html\??(.*+)$" => "/home.php?mod=space&$1=$2&$3",
"^/(+)-(.+)\.html\??(.*+)$" => "/$1.php?rewrite=$2&$3"
)
页: [1]
查看完整版本: Discuz!X伪静态规则For lighttpd【解决名片为静态和DIY问题】