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

 找回密码
 立即注册
搜索

[展示] 三瑞和好店的apache伪静态规则(五个)

[复制链接]
falloutman 发表于 2013-11-2 00:16:59 | 显示全部楼层 |阅读模式
本帖最后由 falloutman 于 2013-11-2 00:19 编辑

# 将 RewriteEngine 模式打开
RewriteEngine On
# 修改以下语句中的 /discuz 为您的论坛目录地址,如果程序放在根目录中,请将 /discuz 修改为 /
RewriteBase /
# Rewrite 系统规则请勿修改
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
  1. #brand 品牌
  2. RewriteRule ^(.*)/brand\.html(\?(.*))*$ $1/plugin\.php\?id=sanree_brand&$3
  3. RewriteRule ^(.*)/brand-index-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/plugin\.php\?id=sanree_brand&mod=list&tid=$2&did=$3&filter=$4&listmode=$5&$6
  4. RewriteRule ^(.*)/brand-(.+)-([0-9]+)\.html(\?(.*))*$ $1/plugin\.php\?id=sanree_brand&mod=$2&tid=$3&$5
  5. RewriteRule ^(.*)/b/([a-z0-9]+)\.html(\?(.*))*$ $1/plugin\.php\?id=sanree_brand&mod=brandno&tid=$2&$4
  6. #tuan 团购
  7. RewriteRule ^(.*)/tuan\.html(\?(.*))*$ $1/plugin\.php\?id=sanree_tuan168&$3
  8. RewriteRule ^(.*)/tuan-index-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/plugin\.php\?id=sanree_tuan168&mod=list&tid=$2&did=$3&filter=$4&listmode=$5&$6
  9. RewriteRule ^(.*)/tuan-show-([0-9]+)\.html(\?(.*))*$ $1/plugin\.php\?id=sanree_tuan168&mod=show&tid=$2&$4
  10. #guestbook 预约
  11. RewriteCond %{QUERY_STRING} ^(.*)$
  12. RewriteRule ^guestbook-([0-9]+)\.html$ plugin.php?id=sanree_brand_guestbook&mod=userguestbook&tid=$1&%1

  13. #goods 商品
  14. RewriteCond %{QUERY_STRING} ^(.*)$
  15. RewriteRule ^goods\.html$ plugin.php?id=sanree_brand_goods&%1
  16. RewriteCond %{QUERY_STRING} ^(.*)$
  17. RewriteRule ^goods-index-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ plugin.php?id=sanree_brand_goods&mod=list&tid=$1&did=$2&filter=$3&listmode=$4&%1
  18. RewriteCond %{QUERY_STRING} ^(.*)$
  19. RewriteRule ^goods-(.+)-([0-9]+)\.html$ plugin.php?id=sanree_brand_goods&mod=$1&tid=$2&%1
  20. #news  商讯
  21. RewriteCond %{QUERY_STRING} ^(.*)$
  22. RewriteRule ^news\.html$ plugin.php?id=sanree_brand_news&%1
  23. RewriteCond %{QUERY_STRING} ^(.*)$
  24. RewriteRule ^news-index-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ plugin.php?id=sanree_brand_news&mod=list&tid=$1&did=$2&filter=$3&listmode=$4&%1
  25. RewriteCond %{QUERY_STRING} ^(.*)$
  26. RewriteRule ^news-(.+)-([0-9]+)\.html$ plugin.php?id=sanree_brand_news&mod=$1&tid=$2&%1
  27. #haodian  好店
  28. RewriteCond %{QUERY_STRING} ^(.*)$
  29. RewriteRule ^(.*)/haodian\.html$ $1/plugin.php?id=dz55625_haodian:haodian
  30. RewriteCond %{QUERY_STRING} ^(.*)$
  31. RewriteRule ^(.*)/haodian_([0-9]+)\.html$ $1/plugin.php?id=dz55625_haodian:haodian&mod=view&sid=$2
  32. RewriteRule ^([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ plugin.php?id=$1<IMG border=0 alt=:$ src="https://discuz.dismall.com/static/image/smiley/default/shy.gif" smilieid="8">2&%1
复制代码

回复

使用道具 举报

skyes0716 发表于 2013-11-8 07:55:26 来自手机 | 显示全部楼层
老大,复制你的规则后,文件放到哪里,给个教程吧
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-11-22 15:58 , Processed in 0.109057 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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