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

 找回密码
 立即注册
搜索

[已解决] 各种伪静态规则!最全!最完整版!

[复制链接]
佐轮Alex 发表于 2012-3-21 12:19:23 | 显示全部楼层 |阅读模式
  1. # 将 RewriteEngine 模式打开
  2. RewriteEngine On
  3. # 修改以下语句中的 / 为你的论坛目录地址,如果程序放在根目录中,请将 / 修改为 /discuz
  4. RewriteBase /
  5. # Rewrite 系统规则请勿修改
  6. RewriteCond %{QUERY_STRING} ^(.*)$
  7. RewriteRule ^blog-([0-9]+)-([0-9]+).html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1
  8. RewriteCond %{QUERY_STRING} ^(.*)$
  9. RewriteRule ^article-(.+).html$ portal.php?mod=view&aid=$1&%1
  10. RewriteCond %{QUERY_STRING} ^(.*)$
  11. RewriteRule ^topic-(.+).html$ portal.php?mod=topic&topicid=$1&%1
  12. RewriteCond %{QUERY_STRING} ^(.*)$
  13. RewriteRule ^forum-(\w+)-([0-9]+).html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
  14. RewriteCond %{QUERY_STRING} ^(.*)$
  15. RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+).html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
  16. RewriteCond %{QUERY_STRING} ^(.*)$
  17. RewriteRule ^group-([0-9]+)-([0-9]+).html$ forum.php?mod=group&fid=$1&page=$2&%1
  18. RewriteCond %{QUERY_STRING} ^(.*)$
  19. RewriteRule ^space-(username|uid)-(.+).html$ home.php?mod=space&$1=$2&%1
  20. RewriteCond %{QUERY_STRING} ^(.*)$
  21. RewriteRule ^archiver/(fid|tid)-([0-9]+).html$ archiver/index.php?action=$1&value=$2&%1
复制代码
各种伪静态规则!最全!最完整版!

解决各种不能用、不能显示、不能伪静态!LZ亲测可用。

文章测试:http://www.qihuolt.com/article-166-1.html

帖子测试:http://www.qihuolt.com/thread-2598-1-1.html

空间测试:http://www.qihuolt.com/space-uid-4.html    (PS.空间不能完全纯伪静态,但地址可访问。)

专题测试:http://www.qihuolt.com/topic-4-1.html

Archiver测试:http://www.qihuolt.com/archiver/?tid-2598.html

其他测试自己去吧,如果还有问题,及时回复我~
回复

使用道具 举报

dicky57 发表于 2012-3-21 12:23:13 | 显示全部楼层
感謝您的熱情分享^^
回复

使用道具 举报

我的农场 发表于 2012-3-21 12:29:31 | 显示全部楼层
伪静态
回复

使用道具 举报

摇滚小子 发表于 2012-3-21 13:51:34 | 显示全部楼层
能用就好
回复

使用道具 举报

mtvxiangjun 发表于 2012-3-22 11:01:57 | 显示全部楼层
楼上说的不错,很有道理值得收藏学习!
回复

使用道具 举报

西安seo朱其飞 发表于 2012-3-23 16:38:40 | 显示全部楼层
我的怎么不行啊,怎么回事啊
回复

使用道具 举报

下砂 发表于 2012-3-23 17:35:28 | 显示全部楼层
感谢分享
回复

使用道具 举报

liujunok 发表于 2012-3-28 09:11:28 | 显示全部楼层
我的站用上了 很好用
回复

使用道具 举报

FLYING_FISH 发表于 2012-3-31 22:58:52 | 显示全部楼层
VPS主机二级目录应该放在哪个地方www.urpdesign.com
回复

使用道具 举报

吃素的猫 发表于 2012-3-31 23:01:19 | 显示全部楼层
相信楼主的说,非常支持你
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-8-26 10:36 , Processed in 0.114614 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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