小草根

DZ DF1 X3.3 X3.2 X3.1 X3伪静态规则设置适用于IIS、Linux系统 草根吧所有资源插件...

作者:小草根   发布时间:2014-03-06 14:21   回复数:111   浏览数:7570
小草根
7570111小草根管理员
热门 加亮 2014-03-06 14:21:56
7570111 热门 加亮 2014-03-06 14:21:56
Discuz! X3.3、F1.0、X3.2、X3.1、X3、X2.5等所有版本 VPS、独立主机的伪静态规则的设置(更新更全的其他插件支持敬请关注本帖更新):
(1)服务器系统及 PHP : Linux / PHP v5.X.X  服务器软件:Apache
.htaccess的规则配置:<IfModule mod_rewrite.c>
# 将 RewriteEngine 模式打开
RewriteEngine On

#自定义404错误页(/page404.html是错误提示用的网页路径,请自行修改)
ErrorDocument 404 /page404.html

#301转向(301重定向,301跳转)设置
RewriteCond %{HTTP_HOST} ^caogen8.co$ [NC,OR]
RewriteCond %{HTTP_HOST} ^caogen8.discuz.cc$
RewriteRule ^(.*)$ https://www.cgzz8.cn/$1 [R=301,L]

# 修改以下语句中的 /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 ^(.*)type-(\w+)-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/forum\.php\?mod=forumdisplay&fid=$2&typeid=$3&typeid=$3&filter=typeid&page=$4
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)sort-(\w+)-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/forum\.php\?mod=forumdisplay&fid=$2&sortid=$3&sortid=$3&filter=sortid&page=$4
#群组主题列表页伪静态
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 [NU]
#用户日志内容页伪静态
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1
#论坛 Archiver 页伪静态
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1
#克米设计图展中心伪静态
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)pic-([0-9]+)\.html(\?(.*))*$ $1plugin\.php\?id=comiis_imgshow&tid=$2&$4
#插件伪静态
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ plugin.php?id=$12&%1

#dmember 深蓝521交友中心
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^jiaoyou/$ jiaoyou.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^jiaoyou$ jiaoyou.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^jiaoyou-([0-9]+)$ jiaoyou.php?pid=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^jiaoyou-([0-9]+)-([a-z0-9_\-]+)$ jiaoyou.php?pid=$1&op=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^jiaoyou-wall$ jiaoyou.php?mod=wall&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^jiaoyou-my$ jiaoyou.php?mod=my&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^jiaoyou-search-girl$ jiaoyou.php?mod=search&now=girl&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^jiaoyou-search-boy$ jiaoyou.php?mod=search&now=boy&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^jiaoyou-advanced$ jiaoyou.php?mod=advanced&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^jiaoyou-profile$ jiaoyou.php?mod=profile&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^jiaoyou-index$ jiaoyou.php?mod=index&%1

#space 深蓝品牌空间
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^space/$ space.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^space$ space.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^space-shop-([a-z0-9_\-]+)-([a-z0-9_\-]+)$ space.php?sid=$1&op=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^space-shop-([a-z0-9_\-]+)$ space.php?sid=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^space-list$ space.php?mod=list&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^space-map$ space.php?mod=map&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^space-brand$ space.php?mod=brand&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^space-card$ space.php?mod=card&%1

#info 深蓝分类信息
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^info/$ info.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^info$ info.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^info-([0-9]+)$ info.php?mod=view&post_id=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^info-cat-([0-9]+)$ info.php?mod=list&subcat_id=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^info-select$ info.php?mod=select&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^info-select-cat-([0-9]+)$ info.php?mod=select&cat_id=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^info-area-([0-9]+)$ info.php?mod=index&area_id=$1&%1

#tuan 深蓝团购
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tuan/$ tuan.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tuan$ tuan.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tuan-goods-([a-z0-9_\-]+)$ tuan.php?mod=view&goods_id=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tuan-shop-list$ tuan.php?mod=shop&op=list&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tuan-shop-([0-9]+)$ tuan.php?mod=shop&op=view&sid=$1&%1

#tmall 深蓝商城
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tmall/$ tmall.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tmall$ tmall.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tmall-goods-([a-z0-9_\-]+)$ tmall.php?mod=view&goods_id=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tmall-shop-list$ tmall.php?mod=shop&op=list&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tmall-shop-([0-9]+)$ tmall.php?mod=shop&op=view&sid=$1&%1

#food 深蓝外卖派送
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^food/$ food.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^food$ food.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^food-goods-([a-z0-9_\-]+)$ food.php?mod=view&goods_id=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^food-shop-list$ food.php?mod=shop&op=list&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^food-shop-([0-9]+)$ food.php?mod=shop&op=view&sid=$1&%1

#biyouhui 深蓝优惠券
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^biyouhui/$ biyouhui.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^biyouhui$ biyouhui.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^biyouhui-goods-([a-z0-9_\-]+)$ biyouhui.php?mod=view&goods_id=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^biyouhui-shop-list$ biyouhui.php?mod=shop&op=list&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^biyouhui-shop-([0-9]+)$ biyouhui.php?mod=shop&op=view&sid=$1&%1

#marry 深蓝婚恋红娘
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^marry/$ marry.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^marry$ marry.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^marry-index$ marry.php?mod=index%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^marry-([0-9]+)$ marry.php?mod=member&pid=$1&%1
RewriteRule ^marry-my$ marry.php?mod=my&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^marry-search-girl$ marry.php?mod=search&op=girl&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^marry-search-boy$ marry.php?mod=search&op=boy&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^marry-advanced$ marry.php?mod=advanced&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^marry-hongniang$ marry.php?mod=hongniang&%1

#sale 深蓝二手市场
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^sale/$ sale.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^sale$ sale.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^sale-([0-9]+)$ sale.php?mod=view&goods_id=$1&%1

#gongqiu 深蓝供求招商
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^gongqiu/$ gongqiu.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^gongqiu$ gongqiu.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^gongqiu-([0-9]+)$ gongqiu.php?mod=view&goods_id=$1&%1

#house 深蓝房产楼盘
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^house/$ house.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^house$ house.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^house-([0-9]+)$ house.php?mod=view&post_id=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^house-loupan-([0-9]+)-([a-z0-9_\-]+)$ house.php?mod=loupan&op=view&lid=$1&ac=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^house-loupan$ house.php?mod=loupan&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^house-loupan-([0-9]+)$ house.php?mod=loupan&op=view&lid=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^house-list-([0-9]+)$ house.php?mod=list&profile_type_id=$1&%1

#job 深蓝求职招聘
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^job/$ job.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^job$ job.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^job-([0-9]+)$ job.php?mod=view&post_id=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^job-list$ job.php?mod=list&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^job-memberlist$ job.php?mod=memberlist&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^job-space-([0-9]+)$ job.php?mod=space&op=view&uid=$1&%1
</IfModule>(2)服务器系统及 PHP:WINNT / PHP v5.X.X  服务器软件:Microsoft-IIS/6.0
httpd.conf规则设置:RegistrationName=Longshui Chen
RegistrationCode=7Z3NU-7MAP5-JZDPH-PR9GK
[ISAPI_Rewrite]
CacheClockRate 3600
RepeatLimit 32

#自定义404错误页(/page404.html是错误提示用的网页路径,请自行修改)
ErrorDocument 404 /page404.html

#301转向(301重定向,301跳转)设置
RewriteCond %{HTTP_HOST} ^caogen8.co$ [NC,OR]
RewriteCond %{HTTP_HOST} ^caogen8.discuz.cc$
RewriteRule ^(.*)$ https://www.cgzz8.cn/$1 [R=301,L]

#discuz x3.1
RewriteBase /
#门户专题页伪静态
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 ^(.*)type-(\w+)-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/forum\.php\?mod=forumdisplay&fid=$2&typeid=$3&typeid=$3&filter=typeid&page=$4
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)sort-(\w+)-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/forum\.php\?mod=forumdisplay&fid=$2&sortid=$3&sortid=$3&filter=sortid&page=$4
#群组主题列表页伪静态
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 [NU]
#用户日志内容页伪静态
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1
#论坛 Archiver 页伪静态
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1
#克米设计图展中心伪静态
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)pic-([0-9]+)\.html(\?(.*))*$ $1plugin\.php\?id=comiis_imgshow&tid=$2&$4
#插件伪静态
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ plugin.php?id=$12&%1

#dmember 深蓝521交友中心
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^jiaoyou/$ jiaoyou.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^jiaoyou$ jiaoyou.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^jiaoyou-([0-9]+)$ jiaoyou.php?pid=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^jiaoyou-([0-9]+)-([a-z0-9_\-]+)$ jiaoyou.php?pid=$1&op=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^jiaoyou-wall$ jiaoyou.php?mod=wall&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^jiaoyou-my$ jiaoyou.php?mod=my&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^jiaoyou-search-girl$ jiaoyou.php?mod=search&now=girl&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^jiaoyou-search-boy$ jiaoyou.php?mod=search&now=boy&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^jiaoyou-advanced$ jiaoyou.php?mod=advanced&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^jiaoyou-profile$ jiaoyou.php?mod=profile&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^jiaoyou-index$ jiaoyou.php?mod=index&%1

#space 深蓝品牌空间
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^space/$ space.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^space$ space.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^space-shop-([a-z0-9_\-]+)-([a-z0-9_\-]+)$ space.php?sid=$1&op=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^space-shop-([a-z0-9_\-]+)$ space.php?sid=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^space-list$ space.php?mod=list&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^space-map$ space.php?mod=map&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^space-brand$ space.php?mod=brand&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^space-card$ space.php?mod=card&%1

#info 深蓝分类信息
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^info/$ info.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^info$ info.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^info-([0-9]+)$ info.php?mod=view&post_id=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^info-cat-([0-9]+)$ info.php?mod=list&subcat_id=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^info-select$ info.php?mod=select&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^info-select-cat-([0-9]+)$ info.php?mod=select&cat_id=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^info-area-([0-9]+)$ info.php?mod=index&area_id=$1&%1

#tuan 深蓝团购
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tuan/$ tuan.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tuan$ tuan.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tuan-goods-([a-z0-9_\-]+)$ tuan.php?mod=view&goods_id=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tuan-shop-list$ tuan.php?mod=shop&op=list&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tuan-shop-([0-9]+)$ tuan.php?mod=shop&op=view&sid=$1&%1

#tmall 深蓝商城
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tmall/$ tmall.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tmall$ tmall.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tmall-goods-([a-z0-9_\-]+)$ tmall.php?mod=view&goods_id=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tmall-shop-list$ tmall.php?mod=shop&op=list&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tmall-shop-([0-9]+)$ tmall.php?mod=shop&op=view&sid=$1&%1

#food 深蓝外卖派送
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^food/$ food.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^food$ food.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^food-goods-([a-z0-9_\-]+)$ food.php?mod=view&goods_id=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^food-shop-list$ food.php?mod=shop&op=list&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^food-shop-([0-9]+)$ food.php?mod=shop&op=view&sid=$1&%1

#biyouhui 深蓝优惠券
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^biyouhui/$ biyouhui.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^biyouhui$ biyouhui.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^biyouhui-goods-([a-z0-9_\-]+)$ biyouhui.php?mod=view&goods_id=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^biyouhui-shop-list$ biyouhui.php?mod=shop&op=list&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^biyouhui-shop-([0-9]+)$ biyouhui.php?mod=shop&op=view&sid=$1&%1

#marry 深蓝婚恋红娘
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^marry/$ marry.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^marry$ marry.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^marry-index$ marry.php?mod=index%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^marry-([0-9]+)$ marry.php?mod=member&pid=$1&%1
RewriteRule ^marry-my$ marry.php?mod=my&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^marry-search-girl$ marry.php?mod=search&op=girl&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^marry-search-boy$ marry.php?mod=search&op=boy&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^marry-advanced$ marry.php?mod=advanced&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^marry-hongniang$ marry.php?mod=hongniang&%1

#sale 深蓝二手市场
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^sale/$ sale.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^sale$ sale.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^sale-([0-9]+)$ sale.php?mod=view&goods_id=$1&%1

#gongqiu 深蓝供求招商
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^gongqiu/$ gongqiu.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^gongqiu$ gongqiu.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^gongqiu-([0-9]+)$ gongqiu.php?mod=view&goods_id=$1&%1

#house 深蓝房产楼盘
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^house/$ house.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^house$ house.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^house-([0-9]+)$ house.php?mod=view&post_id=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^house-loupan-([0-9]+)-([a-z0-9_\-]+)$ house.php?mod=loupan&op=view&lid=$1&ac=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^house-loupan$ house.php?mod=loupan&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^house-loupan-([0-9]+)$ house.php?mod=loupan&op=view&lid=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^house-list-([0-9]+)$ house.php?mod=list&profile_type_id=$1&%1

#job 深蓝求职招聘
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^job/$ job.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^job$ job.php%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^job-([0-9]+)$ job.php?mod=view&post_id=$1&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^job-list$ job.php?mod=list&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^job-memberlist$ job.php?mod=memberlist&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^job-space-([0-9]+)$ job.php?mod=space&op=view&uid=$1&%1httpd.ini:[ISAPI_Rewrite]

# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32

# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
RewriteRule ^(.*)/topic-(.+)\.html(\?(.*))*$ $1/portal\.php\?mod=topic&topic=$2&$4
RewriteRule ^(.*)/article-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/portal\.php\?mod=view&aid=$2&page=$3&$5
RewriteRule ^(.*)/forum-(\w+)-([0-9]+)\.html(\?(.*))*$ $1/forum\.php\?mod=forumdisplay&fid=$2&page=$3&$5
RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/forum\.php\?mod=viewthread&tid=$2&extra=page\%3D$4&page=$3&$6
RewriteRule ^(.*)/group-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/forum\.php\?mod=group&fid=$2&page=$3&$5
RewriteRule ^(.*)/space-(username|uid)-(.+)\.html(\?(.*))*$ $1/home\.php\?mod=space&$2=$3&$5
RewriteRule ^(.*)/blog-([0-9]+)-([0-9]+)\.html(\?(.*))*$ $1/home\.php\?mod=space&uid=$2&do=blog&id=$3&$5
RewriteRule ^(.*)/(fid|tid)-([0-9]+)\.html(\?(.*))*$ $1/index\.php\?action=$2&value=$3&$5
RewriteRule ^(.*)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html(\?(.*))*$ $1/plugin\.php\?id=$23&$5[table=377,royalblue]
[tr][td]   伪静态规则下载地址
[/td][/tr]
[/table]
本部分内容设定了隐藏,需要回复后才能看到


相关阅读:
Discuz X3.3 X3.2 linux使用AMH面板Apache环境的伪静态规则设置方法
https://www.cgzz8.cn/t-22913-1-1.html
(出处: 草根吧)
我是小小莎拉
沙发我是小小莎拉步入草根 2014-03-06 14:28
非常感谢。我现在就试试,。
灰大狼
板凳灰大狼步入草根 2014-03-12 20:45
如果您要查看本帖隐藏内容请回复
多多爱阿狸
地板多多爱阿狸年费ViP 2014-03-29 09:40
谢谢~!~~~~~~~~~~~~~~
hey爱情
4楼hey爱情步入草根 2014-04-02 22:59
支持。。。。。。。。。。。。。。
491095587
5楼491095587步入草根 2014-04-07 17:13
哈哈哈哈哈哈哈哈
哥的谷歌
6楼哥的谷歌步入草根 2014-04-09 17:55
草根吧所有资源插件适用
内涵打工仔
7楼内涵打工仔核心会员 2014-05-14 11:33
谢谢哦  嘿嘿
慕容如风
8楼慕容如风步入草根 2014-05-16 17:24
DZ X3.1 X3 伪静态规则设置适用于IIS、Linux系统 草根吧所有资源插件适用
我心飞翔1
9楼我心飞翔1步入草根 2014-05-22 15:02
谢谢分享 
夏日清风
10楼夏日清风步入草根 2014-05-30 23:24
谢谢楼主分享
轮回的宿命
11楼轮回的宿命步入草根 2014-06-04 19:26
额 下载备用吧!
243084661
12楼243084661步入草根 2014-06-14 14:55
滴答滴答滴答
淡若水
13楼淡若水步入草根 2014-06-16 00:25
伪静态规则设置
lcs123
14楼lcs123步入草根 2014-06-19 11:21
213213654654978789
游客
登录后才可以回帖,登录 或者 注册