东坡下载:内容最丰富最安全的下载站!

首页IT技术软件教程 → wordpress rewrite iis7(wordpress在iis7下的重定向配置)

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

相关文章发表评论 来源:本站整理时间:2018/5/31 14:22:18字体大小:A-A+

更多

作者:专题点击:73次评论:0次标签: iis7

<?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>


扩展知识

相关评论

阅读本文后您有什么感想? 已有 人给出评价!

  • 2791 喜欢喜欢
  • 2101 顶
  • 800 难过难过
  • 1219 囧
  • 4049 围观围观
  • 5602 无聊无聊
热门评论
最新评论
昵称:
表情: 高兴 可 汗 我不要 害羞 好 下下下 送花 屎 亲亲
字数: 0/500 (您的评论需要经过审核才能显示)

本类常用软件