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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[求助] 伪静态 专题去掉“topic-”如何修改httpd.conf文件

[复制链接]
卸_冰 发表于 2012-12-16 23:45:07 | 显示全部楼层 |阅读模式

请高手指点!以下是httpd.conf文件
  1. RegistrationName=Longshui Chen
  2. RegistrationCode=7Z3NU-7MAP5-JZDPH-PR9GK
  3. [ISAPI_Rewrite]
  4. CacheClockRate 3600
  5. RepeatLimit 32

  6. #discuzx2
  7. RewriteCond %{QUERY_STRING} ^(.*)$
  8. RewriteRule ^(.*)/topic-(.+)\.html$ $1/portal.php?mod=topic&topic=$2&%1
  9. RewriteCond %{QUERY_STRING} ^(.*)$
  10. RewriteRule ^(.*)/article-([0-9]+)-([0-9]+)\.html$ $1/portal.php?

  11. mod=view&aid=$2&page=$3&%1
  12. RewriteCond %{QUERY_STRING} ^(.*)$
  13. RewriteRule ^(.*)/forum-(\w+)-([0-9]+)\.html$ $1/forum.php?

  14. mod=forumdisplay&fid=$2&page=$3&%1
  15. RewriteCond %{QUERY_STRING} ^(.*)$
  16. RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/forum.php?

  17. mod=viewthread&tid=$2&extra=page\%3D$4&page=$3&%1
  18. RewriteCond %{QUERY_STRING} ^(.*)$
  19. RewriteRule ^(.*)/group-([0-9]+)-([0-9]+)\.html$ $1/forum.php?

  20. mod=group&fid=$2&page=$3&%1
  21. RewriteCond %{QUERY_STRING} ^(.*)$
  22. RewriteRule ^(.*)/space-(username|uid)-(.+)\.html$ $1/home.php?

  23. mod=space&$2=$3&%1 [NU]
  24. RewriteCond %{QUERY_STRING} ^(.*)$
  25. RewriteRule ^(.*)/blog-([0-9]+)-([0-9]+)\.html$ $1/home.php?

  26. mod=space&uid=$2&do=blog&id=$3&%1
  27. RewriteCond %{QUERY_STRING} ^(.*)$
  28. RewriteRule ^(.*)/(fid|tid)-([0-9]+)\.html$ $1/index.php?

  29. action=$2&value=$3&%1
复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
流年无殇 发表于 2012-12-16 23:46:53 | 显示全部楼层
更新缓存呢?
回复

使用道具 举报

夢Dē輪回 发表于 2012-12-16 23:47:17 | 显示全部楼层
帮忙顶一个
回复

使用道具 举报

 楼主| 卸_冰 发表于 2012-12-16 23:51:47 | 显示全部楼层
流年无殇 发表于 2012-12-16 23:46
更新缓存呢?

没用 09.RewriteRule ^(.*)/topic-(.+)\.html$ $1/portal.php?mod=topic&topic=$2&%1

这句应该怎么改? 不会影响论坛列表?
回复

使用道具 举报

 发表于 2012-12-17 00:33:21
转播微博[tthread=markzy, 无心伤害]http://app.qlogo.cn/mbloghead/2f060c5a58b2ff78a78e[/tthread]
回复

使用道具

流年无殇 发表于 2012-12-17 00:35:47 | 显示全部楼层
  1. RewriteRule ^(.*)/topic-(.+)\.html$ $1/portal.php?mod=topic&topic=$2&%1
复制代码
改成
  1. RewriteRule ^(.*)/(.+)\.html$ $1/portal.php?mod=topic&topic=$2&%1
复制代码
试试
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-3 03:26 , Processed in 0.200773 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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