加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
htaccess.txt 1.63 KB
一键复制 编辑 原始数据 按行查看 历史
天边一抹云 提交于 2015-01-13 12:06 . init
# 将 RewriteEngine 模式打开
RewriteEngine On
# 如果商城程序存放于/shopnc下,需将下行更改为 RewriteBase /shopnc
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;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化