百分百源码网-让建站变得如此简单! 登录 注册 签到领金币!

主页 | 如何升级VIP | TAG标签

当前位置: 主页>网站教程>Discuz教程> Discuz教程:品牌空间伪静态规则
分享文章到:

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

发布时间:12/03 来源: 浏览: 关键词:
###独立主机用户使用此段规则###
<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]
###虚拟主机用户使用此段规则###
打赏

打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

百分百源码网 建议打赏1~10元,土豪随意,感谢您的阅读!

相关文章

共有3人阅读,期待你的评论!发表评论
昵称: 网址: 验证码: 点击我更换图片
最新评论

本文标签

广告赞助

能出一分力是一分吧!

订阅获得更多模板

本文标签

广告赞助

订阅获得更多模板