1 Star 0 Fork 0

为完成 / mweimao_weidian

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.htaccess 4.16 KB
一键复制 编辑 原始数据 按行查看 历史
PhoenixHai 提交于 2016-08-31 23:08 . Update .htaccess
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
#众筹项目
RewriteRule ^index\/index.html$ zc.php?c=index&a=index
RewriteRule ^product\/searchProduct\/([0-9]+).html$ zc.php?c=product&a=searchProduct&sv==$1
RewriteRule ^admin\/([a-z_A-Z]+).html$ zc.php?c=admin&a=$1
RewriteRule ^admin\/product_supervise\/([0-9]+).html$ zc.php?c=admin&a=product_supervise&product_id=$1
RewriteRule ^admin\/([a-z_A-Z]+)\/([0-9]+).html$ zc.php?c=admin&a=$1&status=$2
RewriteRule ^product\/([a-z_A-Z]+).html$ zc.php?c=product&a=$1
RewriteRule ^product\/buyAdd\/([0-9]+)\/([0-9]+).html$ zc.php?c=product&a=buyAdd&repay_id=$1&product_id=$2
RewriteRule ^product\/product_list\/([0-9]+).html$ zc.php?c=product&a=product_list&class=$1
RewriteRule ^product\/confirmOrder\/([0-9]+).html$ zc.php?c=product&a=confirmOrder&oid=$1
RewriteRule ^product\/orderBuy\/([0-9]+).html$ zc.php?c=product&a=orderBuy&oid=$1
RewriteRule ^product\/orderOver\/([0-9]+).html$ zc.php?c=product&a=orderOver&oid=$1
RewriteRule ^product\/([a-z_A-Z]+)\/([0-9]+).html$ zc.php?c=product&a=$1&id=$2
RewriteRule ^newsList\/([a-z]+)$ zc.php?c=index&a=newsList&cat_key=$1
RewriteRule ^newsShow\/([0-9]+).html$ zc.php?c=index&a=newsShow&newsId=$1
RewriteRule ^newsList\/([a-z]+)\/([0-9]+)$ zc.php?c=index&a=newsList&cat_key=$1&page=$2
RewriteRule ^investProject\/([0-9]+).html$ zc.php?c=project&a=investProject&id=$1
#商品分类页
RewriteRule ^category\/([0-9]+)$ index.php?c=category&a=index&id=$1
RewriteRule ^category\/([0-9]+)\/([0-9]+)$ index.php?c=category&a=index&id=$1&page=$2
RewriteRule ^category\/([0-9]+)\/prop_([0-9_]{1,})$ index.php?c=category&a=index&id=$1&prop=$2
RewriteRule ^category\/([0-9]+)\/prop_([0-9_]{1,})\/([0-9]+)$ index.php?c=category&a=index&id=$1&page=$3&prop=$2
#RewriteRule ^category\/((\%[a-fA-F0-9]{2})+|[^\d]+)$ index.php?c=category&a=index&keyword=$1
RewriteRule ^category\/([0-9]+)\/(sort|sales|price|collect|distance)\/(asc|desc)$ index.php?c=category&a=index&id=$1&order=$2&sort=$3
RewriteRule ^category\/([0-9]+)\/(sort|sales|price|collect|distance)\/(asc|desc)\/([0-9]+)$ index.php?c=category&a=index&id=$1&order=$2&sort=$3&page=$4
RewriteRule ^category\/([0-9]+)\/(sort|sales|price|collect|distance)\/(asc|desc)\/prop_([0-9_]{1,})$ index.php?c=category&a=index&id=$1&order=$2&sort=$3&prop=$4
RewriteRule ^category\/([0-9]+)\/(sort|sales|price|collect|distance)\/(asc|desc)\/prop_([0-9_]{1,})\/([0-9]+)$ index.php?c=category&a=index&id=$1&order=$2&sort=$3&page=$5&prop=$4
RewriteRule ^category\/([0-9]+)\/([0-9]+)\/([0-9]+)$ index.php?c=category&a=index&id=$1&start_price=$2&end_price=$3
RewriteRule ^category\/([0-9]+)\/([0-9]+)\/([0-9]+)\/([0-9]+)$ index.php?c=category&a=index&id=$1&start_price=$2&end_price=$3&page=$4
RewriteRule ^category\/([0-9]+)\/prop_([0-9_]{1,})\/([0-9]+)\/([0-9]+)$ index.php?c=category&a=index&id=$1&start_price=$3&end_price=$4&prop=$2
RewriteRule ^category\/([0-9]+)\/([0-9]+)\/([0-9]+)\/prop_([0-9_]{1,})\/([0-9]+)$ index.php?c=category&a=index&id=$1&start_price=$2&end_price=$3&page=$5&prop=$4
RewriteRule ^category\/([0-9]+)\/(sort|sales|price|collect|distance)\/(asc|desc)\/([0-9]+)\/([0-9]+)$ index.php?c=category&a=index&id=$1&order=$2&sort=$3&start_price=$4&end_price=$5
RewriteRule ^category\/([0-9]+)\/(sort|sales|price|collect|distance)\/(asc|desc)\/([0-9]+)\/([0-9]+)\/([0-9]+)$ index.php?c=category&a=index&id=$1&order=$2&sort=$3&start_price=$4&end_price=$5&page=$6
RewriteRule ^category\/([0-9]+)\/(sort|sales|price|collect|distance)\/(asc|desc)\/([0-9]+)\/([0-9]+)\/prop_([0-9_]{1,})$ index.php?c=category&a=index&id=$1&order=$2&sort=$3&start_price=$4&end_price=$5&prop=$6
RewriteRule ^category\/([0-9]+)\/(sort|sales|price|collect|distance)\/(asc|desc)\/([0-9]+)\/([0-9]+)\/prop_([0-9_]{1,})\/([0-9]+)$ index.php?c=category&a=index&id=$1&order=$2&sort=$3&start_price=$4&end_price=$5&page=$7&prop=$6
#商品详情页
RewriteRule ^goods\/([0-9]+)\.html$ index.php?c=goods&a=index&id=$1
# 店铺详情页
RewriteRule ^store\/([0-9]+)\.html$ index.php?c=store&a=index&id=$1
# 优惠券
RewriteRule ^coupon\/couponlist\/([0-9]+)\.html$ index.php?c=coupon&a=couponlist&id=$1
Options -Indexes
1
https://gitee.com/xazzz/mweimao_weidian.git
git@gitee.com:xazzz/mweimao_weidian.git
xazzz
mweimao_weidian
mweimao_weidian
master

搜索帮助