码迷,mamicode.com
首页 > Web开发 > 详细

ecshop伪静态规则web.config

时间:2021-06-28 19:43:32      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:index   serve   dex   tail   server   group   lan   change   erro   

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Imported Rule 1">
<match url="^index.html" />
<action type="Rewrite" url="index.php" />
</rule>

<rule name="Imported Rule 2">
<match url="^category$" />
<action type="Rewrite" url="index.php" />
</rule>
<rule name="Imported Rule 3">
<match url="^feed-c([0-9]+).xml" />
<action type="Rewrite" url="feed.php?cat={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 4">
<match url="^feed-b([0-9]+).xml" />
<action type="Rewrite" url="feed.php?brand={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 5">
<match url="^feed.xml" />
<action type="Rewrite" url="feed.php" appendQueryString="false" />
</rule>
<rule name="Imported Rule 6">
<match url="^(.*)/feed.xml$" />
<action type="Rewrite" url="{R:1}/feed\.php" />
</rule>
<rule name="Imported Rule 7">
<match url="^category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-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:8}&amp;order={R:7}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 8">
<match url="^(.*)/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)(.*)\.html$" />
<action type="Rewrite" url="{R:1}/category\.php\?id={R:2}&amp;brand={R:3}&amp;price_min={R:4}&amp;price_max={R:5}&amp;filter_attr={R:6}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 9">
<match url="^(.*)/category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" />
<action type="Rewrite" url="{R:1}/category\.php\?id={R:2}&amp;brand={R:3}&amp;page={R:4}&amp;sort={R:5}&amp;order={R:6}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 10">
<match url="^(.*)/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html$" />
<action type="Rewrite" url="{R:1}/category\.php\?id={R:2}&amp;brand={R:3}&amp;page={R:4}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 11">
<match url="^category-([0-9]+)-b([0-9]+).html" />
<action type="Rewrite" url="category.php?id={R:1}&amp;brand={R:2}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 12">
<match url="^(.*)/category-([0-9]+)(.*)\.html$" />
<action type="Rewrite" url="{R:1}/category\.php\?id={R:2}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 13">
<match url="^(.*)/category-([0-9]+)-b([0-9]+)\.html(.*)$" ignoreCase="false" />
<action type="Rewrite" url="{R:1}/category\.php\?{R:4}&amp;id={R:2}&amp;brand={R:3}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 14">
<match url="^goods-([0-9]+).html" />
<action type="Rewrite" url="goods.php?id={R:1}" appendQueryString="true" />
</rule>
<rule name="Imported Rule 15">
<match url="^(.*)/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" />
<action type="Rewrite" url="{R:1}/article_cat\.php\?id={R:2}&amp;page={R:3}&amp;sort={R:4}&amp;order={R:5}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 16">
<match url="^(.*)/article_cat-([0-9]+)-([0-9]+)-(.+)(.*)\.html$" />
<action type="Rewrite" url="{R:1}/article_cat\.php\?id={R:1}&amp;page={R:2}&amp;keywords={R:3}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 17">
<match url="^article_cat-([0-9]+)-([0-9]+).html$" />
<action type="Rewrite" url="article_cat.php?id={R:1}&amp;page={R:2}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 18">
<match url="^article_cat-([0-9]+).html" />
<action type="Rewrite" url="article_cat.php?id={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 19">
<match url="^article-([0-9]+).html" />
<action type="Rewrite" url="article.php?id={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 20">
<match url="^(.*)/brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)\.html" />
<action type="Rewrite" url="{R:1}/brand\.php\?id={R:2}&amp;cat={R:3}&amp;page={R:4}&amp;sort={R:5}&amp;order={R:6}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 21">
<match url="^(.*)/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html" />
<action type="Rewrite" url="{R:1}/brand\.php\?id={R:2}&amp;cat={R:3}&amp;page={R:4}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 22">
<match url="^(.*)/brand-([0-9]+)-c([0-9]+)\.html(.*)$" />
<action type="Rewrite" url="{R:1}/brand\.php\?{R:4}&amp;id={R:2}&amp;cat={R:3}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 23">
<match url="^(.*)/brand-([0-9]+)-c([0-9]+)(.*)\.html" />
<action type="Rewrite" url="{R:1}/brand\.php\?id={R:2}&amp;cat={R:3}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 24">
<match url="^(.*)/brand-([0-9]+)(.*)\.html" />
<action type="Rewrite" url="{R:1}/brand\.php\?id={R:2}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 25">
<match url="^(.*)/tag-(.*)\.html" />
<action type="Rewrite" url="{R:1}/search\.php\?keywords={R:2}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 26">
<match url="^(.*)/snatch-([0-9]+)\.html$" />
<action type="Rewrite" url="{R:1}/snatch\.php\?id={R:2}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 27">
<match url="^(.*)/group_buy-([0-9]+)\.html$" />
<action type="Rewrite" url="{R:1}/group_buy\.php\?act=view&amp;id={R:2}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 28">
<match url="^(.*)/auction-([0-9]+)\.html$" />
<action type="Rewrite" url="{R:1}/auction\.php\?act=view&amp;id={R:2}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 29">
<match url="^(.*)/exchange-id([0-9]+)(.*)\.html$" />
<action type="Rewrite" url="{R:1}/exchange\.php\?id={R:2}&amp;act=view" appendQueryString="false" />
</rule>
<rule name="Imported Rule 30">
<match url="^(.*)/exchange-([0-9]+)-min([0-9]+)-max([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" />
<action type="Rewrite" url="{R:1}/exchange\.php\?cat_id={R:2}&amp;integral_min={R:3}&amp;integral_max={R:4}&amp;page={R:5}&amp;sort={R:6}&amp;order={R:7}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 31">
<match url="^(.*)/exchange-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$" />
<action type="Rewrite" url="{R:1}/exchange\.php\?cat_id={R:2}&amp;page={R:3}&amp;sort={R:4}&amp;order={R:5}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 32">
<match url="^(.*)/exchange-([0-9]+)-([0-9]+)(.*)\.html$" />
<action type="Rewrite" url="{R:1}/exchange\.php\?cat_id={R:2}&amp;page={R:3}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 33">
<match url="^(.*)/exchange-([0-9]+)(.*)\.html$" />
<action type="Rewrite" url="{R:1}/exchange\.php\?cat_id={R:2}" appendQueryString="false" />
</rule>
</rules>
</rewrite>
<httpErrors errorMode="DetailedLocalOnly">
<remove statusCode="404" subStatusCode="-1" />
<error statusCode="404" prefixLanguageFilePath="" path="/404.html" responseMode="ExecuteURL" />
</httpErrors>
</system.webServer>
</configuration>

ecshop伪静态规则web.config

标签:index   serve   dex   tail   server   group   lan   change   erro   

原文地址:https://www.cnblogs.com/nweb/p/14940344.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!