为了能快速了解并处理您的问题,请提供以下基础信息:
问题描述: 保持伪静态规则的时候 自动变少是什么原因
比如准备保存的规则是
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="RewriteTagsWithPage" stopProcessing="true">
<match url="^([^.]*)/tags-([a-z0-9]+)-([0-9]+)/$" />
<action type="Rewrite" url="{R:1}/e/tags/itag.php?tagid={R:2}&page={R:3}" />
</rule>
<rule name="RewriteTags" stopProcessing="true">
<match url="^([^.]*)/tags/([a-z0-9]+)/$" />
<action type="Rewrite" url="{R:1}/e/tags/itag.php?tagid={R:2}" />
</rule>
<rule name="RewriteSearch" stopProcessing="true">
<match url="^/search-(.+?)-(.+?)\.html$" />
<action type="Rewrite" url="/e/search/result/index.php?page={R:1}&searchid={R:2}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
等到点保存后 变成 下面这样的
<?xml version="1.0" ?>
<rules>
<rule name="RewriteTags_rewrite" stopProcessing="true">
<match url="^([^.]*)/tags/([a-z0-9]+)/$"/>
<action type="Rewrite" url="{R:1}/e/tags/itag.php?tagid={R:2}"/>
</rule>
</rules>
|
|