zoukankan      html  css  js  c++  java
  • ECMall的htaccess规则

    <IfModule mod_rewrite.c>
    RewriteEngine On

    #商品详情
    RewriteRule ^goods/([0-9]+)/?$ index.php?app=goods&id=$1 [L]
    RewriteRule ^goods/([0-9]+)/([^/]+)/?$ index.php?app=goods&id=$1&act=$2 [L]
    RewriteRule ^goods/([0-9]+)/([^/]+)/page_([^/]+)/?$ index.php?app=goods&id=$1&act=$2&page=$3 [L]
    RewriteRule ^groupbuy/([0-9]+)/?$ index.php?app=groupbuy&id=$1 [L]

    #分类
    RewriteRule ^category/goods/?$ index.php?app=category [L]
    RewriteRule ^category/(.*)/?$ index.php?app=category&act=$1 [L]

    #品牌
    RewriteRule ^brand/?$ index.php?app=brand [L]

    #文章
    RewriteRule ^article/([0-9]+).html$ index.php?app=article&act=view&article_id=$1 [L]

    #店铺页面
    RewriteRule ^store/([0-9]+)/?$ index.php?app=store&id=$1 [L]
    RewriteRule ^store/article/([0-9]+).html$ index.php?app=store&act=article&id=$1 [L]
    RewriteRule ^store/([0-9]+)/credit/?$ index.php?app=store&id=$1&act=credit [L]
    RewriteRule ^store/([0-9]+)/credit/page_([^/]+)/?$ index.php?app=store&id=$1&act=credit&page=$2 [L]
    RewriteRule ^store/([0-9]+)/credit/([0-9]+)/?$ index.php?app=store&id=$1&act=credit&eval=$2 [L]
    RewriteRule ^store/([0-9]+)/credit/([0-9]+)/page_([^/]+)/?$ index.php?app=store&id=$1&act=credit&eval=$2&page=$3 [L]
    RewriteRule ^store/([0-9]+)/goods/?$ index.php?app=store&id=$1&act=search [L]
    RewriteRule ^store/([0-9]+)/goods/page_([^/]+)/?$ index.php?app=store&id=$1&act=search&page=$2 [L]
    RewriteRule ^store/([0-9]+)/category/([0-9]+)/?$ index.php?app=store&id=$1&act=search&cate_id=$2 [L]
    RewriteRule ^store/([0-9]+)/category/([0-9]+)/page_([^/]+)/?$ index.php?app=store&id=$1&act=search&cate_id=$2&page=$3 [L]
    RewriteRule ^store/([0-9]+)/groupbuy/?$ index.php?app=store&id=$1&act=groupbuy [L]
    RewriteRule ^store/([0-9]+)/groupbuy/page_([^/]+)/?$ index.php?app=store&id=$1&act=groupbuy&page=$2 [L]
    </IfModule>

  • 相关阅读:
    VS 2010下一次性配置opencv(32位和64位相同)
    模拟鼠标事件
    Main函数参数argc,argv说明
    Visual Studio 2010 LINK : fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏解决方案
    常量指针和指针常量
    strlen函数实现的几种方法
    杀死指定的进程名
    typedef和typename关键字
    如何理解dart的mixin
    c# 通过dllimport 调用c 动态链接库
  • 原文地址:https://www.cnblogs.com/eastson/p/2733895.html
Copyright © 2011-2022 走看看