Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[教程] 分享:lighttpd 下,discuz x2.5 的伪静态(URL静态化)

[复制链接]
weilcen 发表于 2013-3-14 19:22:25 | 显示全部楼层 |阅读模式
  1. url.rewrite = (
  2. "^(.*)/topic-(.+)\.html$" => "$1/portal.php?mod=topic&topic=$2",
  3. "^(.*)/article-([0-9]+)-([0-9]+)\.html$" => "$1/portal.php?mod=view&aid=$2",
  4. "^(.*)/forum-(\w+)-([0-9]+)\.html$" => "$1/forum.php?mod=forumdisplay&fid=$2&page=$3",
  5. "^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$" => "$1/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&page=$3",
  6. "^(.*)/group-([0-9]+)-([0-9]+)\.html$" => "$1/forum.php?mod=group&fid=$2&page=$3",
  7. "^(.*)/space-(username|uid)-(.+)\.html$" => "$1/home.php?mod=space&$2=$3",
  8. "^(.*)/blog-([0-9]+)-([0-9]+)\.html$" => "$1/home.php?mod=space&uid=$2&do=blog&id=$3",
  9. "^(.*)/(fid|tid)-([0-9]+)\.html$" => "$1/index.php?action=$2&value=$3",
  10. "^(.*)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$" => "$1/plugin.php?id=$2:$3"
  11. )
复制代码
以上就是规则,放在 server.document-root  = "你的路径"   的下面。

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-11-23 23:42 , Processed in 0.021276 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表