客户设置了301跳转,可只有首页跳转成功,内页不跳转,后来核查,客户有设置伪静态规则,需要把伪静态规则放在301跳转规则后面即可正常实现内页跳转功能.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<location path="" overrideMode="Deny">
</location>
<location path="" overrideMode="Allow">
<appSettings />
</location>
<system.webServer>
<rewrite>
<rules>
<rule name="301Redirect" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAny">
<add input="{HTTP_HOST}" pattern="^haidebeibei\.com$" />
</conditions>
<action type="Redirect" url="http://www.haidebeibei.com/{R:0}" redirectType="Permanent" />
</rule>
<rule name="OrgPage" stopProcessing="true">
<match url="^(.*)$" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_HOST}" pattern="^(.*)$" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>