8 Star 14 Fork 8

o保温杯o / shopnc_cps

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.htaccess 1.61 KB
一键复制 编辑 原始数据 按行查看 历史
o保温杯o 提交于 2015-03-20 16:56 . 初始化
# 将 RewriteEngine 模式打开
RewriteEngine On
# 如果商城程序存放于/BesonIT下,需将下行更改为 RewriteBase /BesonIT
RewriteBase /
# apache ,iis 伪静态规则
RewriteRule ^goods-([0-9]+)(-?)([0-9]*).html$ index.php?act=goods&goods_id=$1
RewriteRule ^groupbuy-([0-9]+)-([0-9]+).html$ index.php?act=show_groupbuy&op=groupbuy_detail&group_id=$1&id=$2
RewriteRule ^article-([0-9]+).html$ index.php?act=article&article_id=$1
RewriteRule ^store-([0-9]+).html$ index.php?act=show_store&store_id=$1
RewriteRule ^activity-([0-9]+)-([0-9]*).html$ index.php?act=activity&activity_id=$1&nav_id=$2
RewriteRule ^store_nav-([0-9]+)-([0-9]+).html$ index.php?act=show_store&store_id=$1&article=$2
RewriteRule ^document-([a-zA-Z_]+).html$ index.php?act=document&code=$1
RewriteRule ^coupon_info-([0-9]+)-([0-9]+).html$ index.php?act=coupon_store&op=detail&coupon_id=$1&id=$2
#nginx 伪静态规则
#rewrite ^/goods-([0-9]+)(-?)([0-9]*).html$ /index.php?act=goods&goods_id=$1&id=$2 last;
#rewrite ^/groupbuy-([0-9]+)-([0-9]+).html$ /index.php?act=show_groupbuy&op=groupbuy_detail&group_id=$1&id=$2 last;
#rewrite ^/article-([0-9]+).html$ /index.php?act=article&article_id=$1 last;
#rewrite ^/store-([0-9]+).html$ /index.php?act=show_store&store_id=$1 last;
#rewrite ^/activity-([0-9]+)-([0-9]*).html$ /index.php?act=activity&activity_id=$1&nav_id=$2 last;
#rewrite ^/store_nav-([0-9]+)-([0-9]+).html$ /index.php?act=show_store&store_id=$1&article=$2 last;
#rewrite ^/document-([a-zA-Z_]+).html$ /index.php?act=document&code=$1 last;
#rewrite ^/coupon_info-([0-9]+)-([0-9]+).html$ /index.php?act=coupon_store&op=detail&coupon_id=$1&id=$2 last;
PHP
1
https://gitee.com/mylife/shopnc_cps.git
git@gitee.com:mylife/shopnc_cps.git
mylife
shopnc_cps
shopnc_cps
master

搜索帮助