万网G5主机开启简单重写的方法
2016-07-07 15:14 来源:www.chinab4c.com 作者:ecshop专家
万网服务器要求要Web.config的方式重写,本人菜鸟一个,网上搜集来一个方法,其实做起来很简单,借花献佛:以下为Web.config内容,直接上传根目录,后台》基本设置》开启简单重写即可 <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="Index" stopProcessing="true"> <match url="^index.html" /> <action type="Rewrite" url="index.php" /> </rule> <rule name="Goods" stopProcessing="true"> <match url="^goods-([0-9]+).html" /> <action type="Rewrite" url="goods.php?id={R:1}" /> </rule> <rule name="Feed" stopProcessing="true"> <match url="^feed.xml" /> <action type="Rewrite" url="feed.php" /> </rule> <rule name="Feed-C" stopProcessing="true"> <match url="^feed-c([0-9]+).xml" /> <action type="Rewrite" url="feed.php?cat={R:1}" /> </rule> <rule name="Feed-B" stopProcessing="true"> <match url="^feed-b([0-9]+).xml" /> <action type="Rewrite" url="feed.php?brand={R:1}" /> </rule> <rule name="Articles" stopProcessing="true"> <match url="^article-([0-9]+).html" /> <action type="Rewrite" url="article.php?id={R:1}" /> </rule> <rule name="Search" stopProcessing="true"> <match url="^tag-([_0-9a-z-]+).html" /> <action type="Rewrite" url="search.php?keywords={R:1}" /> </rule> <rule name="Snatch" stopProcessing="true"> <match url="^snatch-([0-9]+).html" /> <action type="Rewrite" url="snatch.php?id={R:1}" /> </rule> <rule name="Group_Buy" stopProcessing="true"> <match url="^group_buy-([0-9]+).html" /> <action type="Rewrite" url="group_buy.php?act=view&id={R:1}" /> </rule> <rule name="Auction" stopProcessing="true"> <match url="^auction-([0-9]+).html" /> <action type="Rewrite" url="auction.php?act=view&id={R:1}" /> </rule> <rule name="Brand1" stopProcessing="true"> <match url="^brand-([0-9]+).html" /> <action type="Rewrite" url="brand.php?id={R:1}" /> </rule> <rule name="Brand2" stopProcessing="true"> <match url="^brand-([0-9]+)-c([0-9]+).html" /> <action type="Rewrite" url="brand.php?id={R:1}&cat={R:2}" /> </rule> <rule name="Brand3" stopProcessing="true"> <match url="^brand-([0-9]+)-c([0-9]+)-([0-9]+).html" /> <action type="Rewrite" url="brand.php?id={R:1}&cat={R:2}&page={R:3}" /> </rule> <rule name="Brand4" stopProcessing="true"> <match url="^brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([_0-9a-z-]+).html" /> <action type="Rewrite" url="brand.php?id={R:1}&cat={R:2}&page={R:3}&sort={R:4}&order={R:5}" /> </rule> <rule name="Cat1" stopProcessing="true"> <match url="^article_cat-([0-9]+).html" /> <action type="Rewrite" url="article_cat.php?id={R:1}" /> </rule> <rule name="Cat2" stopProcessing="true"> <match url="^article_cat-([0-9]+)-([0-9]+).html" /> <action type="Rewrite" url="article_cat.php?id={R:1}&page={R:2}" /> </rule> <rule name="Cat3" stopProcessing="true"> <match url="^article_cat-([0-9]+)-([0-9]+)-(.+)-([_0-9a-z-]+).html" /> <action type="Rewrite" url="article_cat.php?id={R:1}&page={R:2}&sort={R:3}&order={R:4}" /> </rule> <rule name="Category1" stopProcessing="true"> <match url="^category-([0-9]+).html" /> <action type="Rewrite" url="category.php?id={R:1}" /> </rule> <rule name="Category2" stopProcessing="true"> <match url="^category-([0-9]+)-b([0-9]+).html" /> <action type="Rewrite" url="category.php?id={R:1}&brand={R:2}" /> </rule> <rule name="Category3" stopProcessing="true"> <match url="^category-([0-9]+)-b([0-9]+)-([0-9]+).html" /> <action type="Rewrite" url="category.php?id={R:1}&brand={R:2}&page={R:3}" /> </rule> <rule name="Category4" stopProcessing="true"> <match url="^category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([_0-9a-z-]+).html" /> <action type="Rewrite" url="category.php?id={R:1}&brand={R:2}&page={R:3}&sort={R:4}&order={R:5}" /> </rule> <rule name="Category5" stopProcessing="true"> <match url="^category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*).html" /> <action type="Rewrite" url="category.php?id={R:1}&brand={R:2}&price_min={R:3}&price_max={R:4}&filter_attr={R:5}" /> </rule> <rule name="Category6" stopProcessing="true"> <match url="^category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([_0-9a-z-]+).html" /> <action type="Rewrite" url="category.php?id={R:1}&brand={R:2}&price_min={R:3}&price_max={R:4}&filter_attr={R:5}&page={R:6}&sort={R:7}&order={R:8}" /> </rule> </rules> </rewrite> </system.webServer> <system.web> <compilation debug="true" /> <authentication mode="Windows" /> </system.web> </configuration> |
回答:
我用的是ecshop3.7.3版本,万网G5空间 |
最近更新
常用插件
- ecshop二次开发商品购买备
ecshop销售统计 插件介绍:ecshop二次开发订单销售统计和商品购买备注服...
- ecshop会员中心订单excel倒出
ecshop会员中心订单excel倒出...
- ecshop注册推荐送现金插件
ecshop中的促销售功能还不是很完善,随着电子商务系统的发展和进步,...
- ecshop二次商品订购人信息
ecshop二次商品订购人信息填写插件,有时候给朋友送花,或者是送礼品的...
- ecshop2.7.2退换货申请插件
ecshop2.7.2退换货申请插件,主要是在 ecshop 现在的基础上,对ecshop的订单处...
ecshop热门问答
ecshop热门资料
ecshop剩余时间
ecshopconstructor
ecshop百度有啊
ecshop后台错误
ecshopclothing
ecshop照片
ecshop环境监测
ecshop撑破
ecshopcsv文档
ecshopAPM
ecshop绿卡
ecshopMaximum
ecshop非洲
ecshop网店备份
ecshop变量声明
dedecms标签
ecshop建义
ecshop搜索页
ecshoposs
ecshop退货插件
ecshop淘宝商品
ecshop开源
ecshopMSN号码
ecshop中文繁体
ecshop淘日本
ecshop玉树
ecshop跟帖
ecshop测试
ecshop专业网站
ecshop关闭浏览器