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")
Tag:discuz伪静态规则lighttpd
标签解析:{category module=share pid=0}
当前路由:article/show/index
动态地址:index.php?s=article&c=html&m=show&catids=&ids=&is_mobile=&iframe=1&pp=26
变量前缀:t
总记录数:11
分页功能:未开启
可用字段:id、tid、pid、mid、pids、name、dirname、pdirname、child、childids、domain、mobile_domain、thumb、show、content、displayorder、disabled、ismain、pcatpost、topid、catids、is_post、url、total
-
用微信 “扫一扫”
将文章分享到朋友圈。
关注公众号:xue-jiqiao
本文版权归原作者所有,转载请注明原文来源出处,学技巧网站制作感谢您的支持!
发表评论:
最新建站教程
猜你也喜欢看这些



