ecshop web.config伪静态规则

    文章来源:中国互联 更新时间:2016-8-5 14:21:57
分享:

ecshop web.config伪静态规则

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
<rewrite>
             <rules>
               <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&amp;id={R:1}"  />
                 </rule>
                 <rule name="Auction" stopProcessing="true">
                     <match url="^auction-([0-9] ).html" />
                     <action type="Rewrite" url="auction.php?act=view&amp;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}&amp;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}&amp;cat={R:2}&amp;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}&amp;cat={R:2}&amp;page={R:3}&amp;sort={R:4}&amp;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}&amp;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}&amp;page={R:2}&amp;sort={R:3}&amp;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}&amp;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}&amp;brand={R:2}&amp;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}&amp;brand={R:2}&amp;page={R:3}&amp;sort={R:4}&amp;order={R:5}"  />
                 </rule>
                 <rule name="Category5" stopProcessing="true">
                     <match url="^category-([0-9] )-b([0-9] )-min([0-9] )-max([0-9] )-attr([_0-9a-z-] ).html" />
                     <action type="Rewrite" url="category.php?id={R:1}&amp;brand={R:2}&amp;price_min={R:3}&amp;price_max={R:4}&amp;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-9a-z-] )-([0-9] )-(. )-([_0-9a-z-] ).html" />
                     <action type="Rewrite" url="category.php?id={R:1}&amp;brand={R:2}&amp;price_min={R:3}&amp;price_max={R:4}&amp;filter_attr={R:5}&amp;page={R:6}&amp;sort={R:7}&amp;order={R:8}"  />
                 </rule>
    </rules>
         </rewrite>
 </system.webServer>
</configuration>

 把以上ecshop web.config伪静态规则写入到web.config文件中,上传到网站wwwroot下面。网站后台开启伪静态就可以了。

在线咨询
  • 在线时间
  • 8:00-21:00
ecshop web.config伪静态规则-中国互联

ecshop web.config伪静态规则

    文章来源:中国互联 更新时间:2016-8-5 14:21:57
分享:

ecshop web.config伪静态规则

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
<rewrite>
             <rules>
               <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&amp;id={R:1}"  />
                 </rule>
                 <rule name="Auction" stopProcessing="true">
                     <match url="^auction-([0-9] ).html" />
                     <action type="Rewrite" url="auction.php?act=view&amp;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}&amp;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}&amp;cat={R:2}&amp;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}&amp;cat={R:2}&amp;page={R:3}&amp;sort={R:4}&amp;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}&amp;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}&amp;page={R:2}&amp;sort={R:3}&amp;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}&amp;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}&amp;brand={R:2}&amp;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}&amp;brand={R:2}&amp;page={R:3}&amp;sort={R:4}&amp;order={R:5}"  />
                 </rule>
                 <rule name="Category5" stopProcessing="true">
                     <match url="^category-([0-9] )-b([0-9] )-min([0-9] )-max([0-9] )-attr([_0-9a-z-] ).html" />
                     <action type="Rewrite" url="category.php?id={R:1}&amp;brand={R:2}&amp;price_min={R:3}&amp;price_max={R:4}&amp;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-9a-z-] )-([0-9] )-(. )-([_0-9a-z-] ).html" />
                     <action type="Rewrite" url="category.php?id={R:1}&amp;brand={R:2}&amp;price_min={R:3}&amp;price_max={R:4}&amp;filter_attr={R:5}&amp;page={R:6}&amp;sort={R:7}&amp;order={R:8}"  />
                 </rule>
    </rules>
         </rewrite>
 </system.webServer>
</configuration>

 把以上ecshop web.config伪静态规则写入到web.config文件中,上传到网站wwwroot下面。网站后台开启伪静态就可以了。

在线咨询
  • 在线时间
  • 8:00-21:00