+ 收藏我们

网站模板

网站模板搜索
404模板 营销型模板 外贸网站模板 单页模板 双语模板 标签大全

注册

Discuz教程:品牌空间伪静态规则

AB模板网 / 2015-08-15
###独立主机用户使用此段规则###
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)/store-([0-9]+)\.html$ $1/store.php?id=$2 [L,NC]
RewriteRule ^(.*)/store-([0-9]+)-([a-z]+)\.html$ $1/store.php?id=$2&action=$3 [L,NC]
RewriteRule ^(.*)/store-([0-9]+)-([a-z]+)-([0-9]+)\.html$ $1/store.php?id=$2&action=$3&xid=$4 [L,NC]
RewriteRule ^(.*)/store-([0-9]+)-([a-z]+)-catid-([0-9]+)\.html$ $1/store.php?id=$2&action=$3&catid=$4 [L,NC]
RewriteRule ^(.*)/street-([0-9]+)\.html$ $1/street.php?catid=$2 [L,NC]
RewriteRule ^(.*)/street-([0-9]+)-([0-9]+)\.html$ $1/street.php?catid=$2&tagid=$3 [L,NC]
</IfModule>
###独立主机用户使用此段规则###
 
###虚拟主机用户使用此段规则###
# 将 RewriteEngine 模式打开
RewriteEngine On
# 修改以下语句中的 /brand 为你的品牌空间目录相对地址,如果程序放在根目录中,请将 /brand 修改为 /
RewriteBase /brand
# Rewrite 系统规则请勿修改
RewriteRule ^store-([0-9]+)\.html$ store.php?id=$1 [L,NC]
RewriteRule ^store-([0-9]+)-([a-z]+)\.html$ store.php?id=$1&action=$2 [L,NC]
RewriteRule ^store-([0-9]+)-([a-z]+)-([0-9]+)\.html$ store.php?id=$1&action=$2&xid=$3 [L,NC]
RewriteRule ^store-([0-9]+)-([a-z]+)-catid-([0-9]+)\.html$ store.php?id=$1&action=$2&catid=$3 [L,NC]
RewriteRule ^street-([0-9]+)\.html$ street.php?catid=$1 [L,NC]
RewriteRule ^street-([0-9]+)-([0-9]+)\.html$ street.php?catid=$1&tagid=$2 [L,NC]
###虚拟主机用户使用此段规则###
文章搜集与网络,如有侵权请联系本站,转载请说明出处:https://www.adminbuy.cn/discuzjc/1397.html

有问题可以加入网站技术QQ群一起交流学习

本站vip会员 请加入AB模板网 VIP群(577645397) PS:加入时备注用户名或昵称

普通注册会员或访客 请加入AB模板网 技术交流群(818577662)

客服微信号:wwwadminbuycn

☉首先声明,只要是我们的vip会员全站所有资源均可以免费下载,不做任何限制(了解更多)

☉本站的源码不会像其它下载站一样植入大量的广告。

☉本站提供的网站源码,都是做好测试好发布的,均可放心使用。

☉本站提供的网站源码,均带数据及演示地址。可以在任一源码详情页查看演示地址。

☉为了vip利益的最大化,我们还提供了vip赠品(了解更多

☉如有其他问题,请加网站客服QQ(9490489)进行交流。

首页 pbootcms模板 html模板 会员中心
 
QQ在线咨询

推荐添加下面的微信客服

添加微信客服