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

作者: 专题 2018/5/31 14:22:18

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

<!--

  For more information on how 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>


特别推荐

玩家留言 跟帖评论
查看更多评论