当前位置:   article > 正文

IIS PHP Thinkphp 重定向 rewrite 设置默认header meta IE 兼容模式_iis rewrite header

iis rewrite header
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
  <!-- 设定IIS重定向规则,默认是index.php,如果不是自己修改-->
    <rewrite>
      <rules>
        <rule name="WPurls" enabled="true" 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/{R:0}" />
        </rule>
      </rules>
    </rewrite>
<!-- 设定网站服务器以IE最高兼容模式 -->
    <httpProtocol>
      <customHeaders>
        <clear />
        <add name="X-UA-Compatible" value="IE=edge" />
      </customHeaders>
    </httpProtocol>
  </system.webServer>
</configuration>
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/知新_RL/article/detail/190098
推荐阅读
相关标签
  

闽ICP备14008679号