零速下载:热门手机app,电脑软件下载中心!
首页 新闻资讯 wordpress rewrite iis7(wordpress在iis7下的重定向配置)

wordpress rewrite iis7(wordpress在iis7下的重定向配置)

时间: 来源:网络 编辑:零速下载

<?xml version="1.0"encoding="UTF-8"?>

<!--

For more information onhow to configure your ASP.NET application, please visit

http://go.microsoft.com/fwlink/?LinkId=169433

-->

<configuration>

<system.web>

<compilation debug="true"targetFramework="4.5"/>

<httpRuntime targetFramework="4.5"/>

</system.web>

<system.webServer>

<rewrite>

<rules><rule name="Main Rule"stopProcessing="true"><match url=".*"/><conditions logicalGrouping="MatchAll"><add input="{REQUEST_FILENAME}"matchType="IsFile"negate="true"/><add input="{REQUEST_FILENAME}"matchType="IsDirectory"negate="true"/></conditions><action type="Rewrite"url="index.php"/></rule>

<rule name="wordpress"patternSyntax="Wildcard">

<match url="*"/>

<conditions>

<add input="{REQUEST_FILENAME}"matchType="IsFile"negate="true"/>

<add input="{REQUEST_FILENAME}"matchType="IsDirectory"negate="true"/>

</conditions>

<action type="Rewrite"url="index.php"/>

</rule></rules>

</rewrite>

</system.webServer>

</configuration>