lighttpd下安装discuz的伪静态规则
discuz的伪静态规则的设置,说麻烦也麻烦,说简单也简单,但是一切为了seo优化,还是做伪静态吧。
下面就是lighttpd下安装discuz的伪静态规则,大家参考下吧。
url.rewrite-once = ( "^/topic-(.+)\.html\??(.*+)$" => "/portal.php?mod=topic&topic=$1&$2", "^/article-([0-9]+)-([0-9]+)\.html\??(.*+)$" => "/portal.php?mod=view&aid=$1&page=$2&$3", "^/forum-(\w+)-([0-9]+)\.html\??(.*+)$" => "/forum.php?mod=forumdisplay&fid=$1&page=$2&$3", "^/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html\??(.*+)$" => "/forum.php?mod=viewthread&tid=$1&extra=page%3D$3&page=$2&$4", "^/group-([0-9]+)-([0-9]+)\.html\??(.*+)$" => "/forum.php?mod=group&fid=$1&page=$2&$3", "^/space-(username|uid)-(.+)\.html\??(.*+)$" => "/home.php?mod=space&$1=$2&$3", "^/([a-z]+)-(.+)\.html\??(.*+)$" => "/$1.php?rewrite=$2&$3")
-
用微信 “扫一扫”
将文章分享到朋友圈。
关注公众号:xue-jiqiao
本文版权归原作者所有,转载请注明原文来源出处,学技巧网站制作感谢您的支持!
发表评论:
最新建站教程
猜你也喜欢看这些