小草根

[深蓝技术教程] 深蓝系统伪静态设置教程【2015.1.5更新】

作者:小草根   发布时间:2014-01-25 12:32   回复数:60   浏览数:4656
小草根
465660小草根管理员
热门 加亮 2014-01-25 12:32:32
465660 热门 加亮 2014-01-25 12:32:32
[color=rgb(17, 17, 17)]方法1. 深蓝系统伪静态文件 iis7 web.config.rar.zip
深蓝系统伪静态文件 iis7 web.config.rar.zip[color=rgb(17, 17, 17)] (1.73 KB, 下载次数: 1044)



方法2. 确保支持 htaccess
设置伪静态之前请先确保插件已经在设置里开启了伪静态
[color=rgb(17, 17, 17)]IIS或APACHE服务器需要修改 .htaccess
[color=rgb(17, 17, 17)]打开论坛根目录 .htaccess 文件,如果没有这个文件需要新建一个

可以直接下载此文件上传至论坛根目录, 如果不是二级目录安装论坛代码不需要改动
htaccess.zip (1.54 KB, 下载次数: 1121)


IIS支持 htaccess , 需要安装 ISAPI_Rewrite(百度一下) 扩展,  apache 是默认支持 htaccess


.htaccess相关知识,百度搜索 htaccess
[color=rgb(17, 17, 17)]以下代码前提,是必须支持 [color=rgb(17, 17, 17)].htaccess 确认支持后,在 [color=rgb(17, 17, 17)].htaccess  文件末尾处加入以下代码:
[color=rgb(17, 17, 17)]只添加已安装插件的规则, 伪静态设置成功之后, 在 网站后[color=rgb(17, 17, 17)]台 - [color=rgb(17, 17, 17)]界面 - 导航 把插件.php 的后缀去掉    

#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

#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

#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


DZ X3.1 X3论坛伪静态综合设置参照:
本部分内容设定了隐藏,需要回复后才能看到

首席村长
沙发首席村长步入草根 2014-04-07 17:35
深蓝系统伪静态设置教程
哥的谷歌
板凳哥的谷歌步入草根 2014-04-09 17:54
看看来看看来
深藏功与名
地板深藏功与名步入草根 2014-04-10 14:06
0.0
.00
0
.0
.0.
0
深藏功与名
4楼深藏功与名步入草根 2014-04-10 14:07
0.0
.00
0
.0
.0.
0
深藏功与名
5楼深藏功与名步入草根 2014-04-10 14:15
地方斯蒂芬斯蒂芬
ibaodi
6楼ibaodi步入草根 2014-04-20 00:54
红叶科技
7楼红叶科技终身ViP 2014-04-20 16:39
#在这里快速DZ X3.1 X3论坛伪静态综合设置参照回复#
巴渝社区
8楼巴渝社区步入草根 2014-05-06 19:14
深蓝技术教程] 深蓝系统伪静态设置教程
小小六
9楼小小六步入草根 2014-05-09 17:00
谢谢楼主分享
塘厦
10楼塘厦步入草根 2014-05-09 18:29
看看 有用不
我是小小莎拉
11楼我是小小莎拉步入草根 2014-05-13 16:23
这个现在可以用了吧
内涵打工仔
12楼内涵打工仔核心会员 2014-05-14 11:32
谢谢分享这个必须要有
慕容如风
13楼慕容如风步入草根 2014-05-16 17:24
慕容如风慕容如风慕容如风
我心飞翔1
14楼我心飞翔1步入草根 2014-05-22 14:59
过来学习一下
游客
登录后才可以回帖,登录 或者 注册