ecshop伪静态万网规则
2016-07-07 15:16 来源:www.chinab4c.com 作者:ecshop专家
购买的万网G1 虚拟主机,要怎么写伪静态规则呢? G享主机URLREWRITE手册UrlRewrite技术已经被广泛使用,为了方便用户操作,我们提供了相关的使用手册,目前提供了ASP、ASP.NET、PHP脚本的测试样例,供用户参考。 感谢您长期对万网的关注和支持! UrlRewrite使用手册下载 http://www.net.cn/service/ziliao/cpsc/200905/3784.html 配置完毕后,将伪静态上传后,在后台开启后台的 简单重写 本人已写好了规则,已测试无误。 现将规则与大家共享下 <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="1" stopProcessing="true"> <match url="^index\.html$" ignoreCase="true" /> <action type="Rewrite" url="index.php" /> </rule> <rule name="2" stopProcessing="true"> <match url="^category$" ignoreCase="false" /> <action type="Rewrite" url="index.php" /> </rule> <!--# access any object by its numeric identifier--> <rule name="3" stopProcessing="true"> <match url="^feed-c([0-9]+)\.xml$" ignoreCase="false" /> <action type="Rewrite" url="feed.php?cat={R:1}" appendQueryString="false" /> </rule> <rule name="4" stopProcessing="true"> <match url="^feed-b([0-9]+)\.xml$" ignoreCase="false" /> <action type="Rewrite" url="feed.php?brand={R:1}" appendQueryString="false" /> </rule> <rule name="5" stopProcessing="true"> <match url="^feed-type([^-]+)\.xml$" ignoreCase="false" /> <action type="Rewrite" url="feed.php?type={R:1}" appendQueryString="false" /> </rule> <rule name="6" stopProcessing="true"> <match url="^feed\.xml$" ignoreCase="false" /> <action type="Rewrite" url="feed.php" /> </rule> <rule name="7" stopProcessing="true"> <match url="^category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" ignoreCase="false" /> <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}" appendQueryString="true" /> </rule> <rule name="8" stopProcessing="true"> <match url="^category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)(.*)\.html$" ignoreCase="false" /> <action type="Rewrite" url="category.php?id={R:1}&brand={R:2}&price_min={R:3}&price_max={R:4}&filter_attr={R:5}" appendQueryString="true" /> </rule> <rule name="9" stopProcessing="true"> <match url="^category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" ignoreCase="false" /> <action type="Rewrite" url="category.php?id={R:1}&brand={R:2}&page={R:3}&sort={R:4}&order={R:5}" appendQueryString="true" /> </rule> <rule name="10" stopProcessing="true"> <match url="^category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html$" ignoreCase="false" /> <action type="Rewrite" url="category.php?id={R:1}&brand={R:2}&page={R:3}" appendQueryString="true" /> </rule> <rule name="11" stopProcessing="true"> <match url="^category-([0-9]+)-b([0-9]+)(.*)\.html$" ignoreCase="false" /> <action type="Rewrite" url="category.php?id={R:1}&brand={R:2}" appendQueryString="true" /> </rule> <rule name="12" stopProcessing="true"> <match url="^category-([0-9]+)(.*)\.html$" ignoreCase="false" /> <action type="Rewrite" url="category.php?id={R:1}" appendQueryString="true" /> </rule> <rule name="13" stopProcessing="true"> <match url="^goods-([0-9]+)(.*)\.html$" ignoreCase="false" /> <action type="Rewrite" url="goods.php?id={R:1}" appendQueryString="true" /> </rule> <rule name="14" stopProcessing="true"> <match url="^article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" ignoreCase="false" /> <action type="Rewrite" url="article_cat.php?id={R:1}&page={R:2}&sort={R:3}&order={R:4}" appendQueryString="true" /> </rule> <rule name="15" stopProcessing="true"> <match url="^article_cat-([0-9]+)-([0-9]+)-(.+)(.*)\.html$" ignoreCase="false" /> <action type="Rewrite" url="article_cat.php?id={R:1}&page={R:2}&keywords={R:3}" appendQueryString="true" /> </rule> <rule name="16" stopProcessing="true"> <match url="^article_cat-([0-9]+)-([0-9]+)(.*)\.html$" ignoreCase="false" /> <action type="Rewrite" url="article_cat.php?id={R:1}&page={R:2}" appendQueryString="true" /> </rule> <rule name="17" stopProcessing="true"> <match url="^article_cat-([0-9]+)(.*)\.html$" ignoreCase="false" /> <action type="Rewrite" url="article_cat.php?id={R:1}" appendQueryString="true" /> </rule> <rule name="18" stopProcessing="true"> <match url="^article-([0-9]+)(.*)\.html$" ignoreCase="false" /> <action type="Rewrite" url="article.php?id={R:1}" appendQueryString="true" /> </rule> <rule name="19" stopProcessing="true"> <match url="^brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)\.html" ignoreCase="false" /> <action type="Rewrite" url="brand.php?id={R:1}&cat={R:2}&page={R:3}&sort={R:4}&order={R:5}" appendQueryString="true" /> </rule> <rule name="20" stopProcessing="true"> <match url="^brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html" ignoreCase="false" /> <action type="Rewrite" url="brand.php?id={R:1}&cat={R:2}&page={R:3}" appendQueryString="true" /> </rule> <rule name="21" stopProcessing="true"> <match url="^brand-([0-9]+)-c([0-9]+)(.*)\.html" ignoreCase="false" /> <action type="Rewrite" url="brand.php?id={R:1}&cat={R:2}" appendQueryString="true" /> </rule> <rule name="22" stopProcessing="true"> <match url="^brand-([0-9]+)(.*)\.html" ignoreCase="false" /> <action type="Rewrite" url="brand.php\?id={R:1}" appendQueryString="true" /> </rule> <rule name="23" stopProcessing="true"> <match url="^tag-(.*)\.html" ignoreCase="false" /> <action type="Rewrite" url="search.php\?keywords={R:1}" appendQueryString="true" /> </rule> <rule name="24" stopProcessing="true"> <match url="^snatch-([0-9]+)\.html$" ignoreCase="false" /> <action type="Rewrite" url="snatch.php?id={R:1}" appendQueryString="true" /> </rule> <rule name="25" stopProcessing="true"> <match url="^group_buy-([0-9]+)\.html$" ignoreCase="false" /> <action type="Rewrite" url="group_buy.php?act=view&id={R:1}" appendQueryString="true" /> </rule> 配置文件webconfig下载地址 http://www.zhuoego.com/bbs/forum.php?mod=viewthread&tid=237 |
回答:
学习了。 万网伪静态。 |
楼主我的编码是GBK的 你这个是utf-8的 怎么办呢? |
用过表示问题的确很多, 设置非常繁琐, 头疼啊 |
最近更新
常用插件
- ecshop二次开发售后维修卡
插件介绍: 本插件是用于专门从事电子,信息,软件等售后服务关键比...
- ecshop供应商插件免费下载
ecshop供应商插件免费下载...
- ecshop快递发货单打印商品
ecshop快递发货单打印商品信息,大家都知道ecshop快递单打印的时候,只能...
- ecshop按分类筛选销售排行
ecshop按分类筛选销售排行...
- ecshop选择下单时间插件
ecshop选择下单时间插件主要是根据不同的下单配送要求,在ecshop购物车...
ecshop热门问答
ecshop热门资料
ecshop成英文
ecshop配送与支付
ecshop商品详情页调用问题!
ecshop全部
ecshop验证邮件送积分
ecshop发大财
ecshopbuyer
ecshop图片插件
ecshop支付款
ecshophsph
ecshopcomsenz
ecshop推荐朋友
ecshoppriv
ecshop讨论群
ecshop秘书
ecshopAPM
ecshopXXXXXX
ecshopmove
ecshop273
uchomeblog
ecshop显示数量问题
zencart评论等级
ecshop送货
ecshop百科
ecshopgrid
ecshop白菜价
ecshop即时到帐
ecshop如何赚
ecshopoption
ecshop商品规格