A-A+

ECSHOP 各种类型伪静态规则

2015年02月27日 Ecshop 暂无评论 阅读 238 次浏览 次
ECShop是上海商派网络科技有限公司(ShopEx)旗下——B2C独立网店系统,适合企业及个人快速构建个性化网上商店。系统是基于PHP语言及MYSQL数据库构架开发的跨平台开源程序。
ECShop悉心听取每一位商家的需求与建议,不仅设计了人性化的网店管理系统帮助商家快速上手,还根据中国人的购物习惯改进了购物流程,实现更好的用户购物体验。
经过近两年的发展,ECShop网店系统无论在产品功能、稳定性、执行效率、负载能力、安全性和SEO支持(搜索引擎优化)等方面都居国内同类产品领先地位,成为国内最流行的购物网站程序。
 
###Windows 2003+IIS 6.0 伪静态设置:
1.上传ISAPI_Rewrite组建,里面一般包含,规则文件(httpd.ini),伪静态需要加载的dll文件(Rewrite.dll)
2.找到要设置的网站右键-属性-ISAPI筛选器,筛选器名称如:re,可执行文件选择ISAPI_Rewrite组建里面的,通常名为Rewrite.dll。
3. 将以下重写规则复制到httpd.ini文件。
 
-----------------------------------伪静态规则---------------------------------
[ISAPI_Rewrite]  
RewriteCond %{HTTP:Host} 
 
 
RewriteRule ^(.*)/index.html$ $1/index\.php 
 
RewriteRule ^(.*)/category$ $1/index\.php 
  
RewriteRule ^(.*)/feed-c([0-9]+).xml$ $1/feed\.php\?cat=$2 
 
RewriteRule ^(.*)/feed-b([0-9]+).xml$ $1/feed\.php\?brand=$2 
 
RewriteRule ^(.*)/feed.xml$ $1/feed\.php 
 
RewriteRule  
^(.*)/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*
)\.html$ 
$1/category\.php\?id=$2&brand=$3&price_min=$4&price_max=$5&filter_attr=$6&pag
e=$7&sort=$8&order=$9 
RewriteRule  
^(.*)/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)\.html$ 
$1/category\.php\?id
=$2&brand=$3&price_min=$4&price_max=$5&filter_attr=$6 
 
RewriteRule  
^(.*)/category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ 
$1/category\.php\?id=$2&b
rand=$3&page=$4&sort=$5&order=$6 
 
RewriteRule  
^(.*)/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html$ $1/category\.php\?id=$2&brand=$3&page=$
  
RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)(.*)\.html$ $1/category\.php\?id=$2&brand=$3 
 
RewriteRule ^(.*)/category-([0-9]+)(.*)\.html$ $1/category\.php\?id=$2 
 
RewriteRule ^(.*)/goods-([0-9]+)(.*)\.html$ $1/goods\.php\?id=$2 
 
RewriteRule  
^(.*)/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ 
$1/article_cat\.php\?id=$2&page=$
3&sort=$4&order=$5 
  
RewriteRule ^(.*)/article_cat-([0-9]+)-([0-9]+)(.*)\.html$ $1/article_cat\.php\?id=$2&page=$3 
 
RewriteRule ^(.*)/article_cat-([0-9]+)(.*)\.html$ $1/article_cat\.php\?id=$2 
 
RewriteRule ^(.*)/article-([0-9]+)(.*)\.html$ $1/article\.php\?id=$2 
  
RewriteRule 
^(.*)/brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)\.html 
$1/brand\.php\?id=$2&cat=$3&page=$4&sort=$5&order=$6 
RewriteRule 
^(.*)/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html 
$1/brand\.php\?id=$2&cat=$3&page=$4 
  
RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)(.*)\.html $1/brand\.php\?id=$2&cat=$3 
 
RewriteRule ^(.*)/brand-([0-9]+)(.*)\.html $1/brand\.php\?id=$2 
 
RewriteRule ^(.*)/tag-(.*)\.html $1/search\.php\?keywords=$2 
 
RewriteRule ^(.*)/snatch-([0-9]+)\.html$ $1/snatch\.php\?id=$2 
  
RewriteRule ^(.*)/group_buy-([0-9]+)\.html$ $1/group_buy\.php\?act=view&id=$2
 
4.保存,进入ECSHOP基本设置把url重写启用即可。

 

标签:

评论已关闭!

Copyright © 香港虚拟主机_美国虚拟主机_香港服务器_美国服务器租用托管 保留所有权利.   Theme  Ality 蜀ICP备14006632号-1

用户登录