【发布时间】:2015-09-10 07:48:28
【问题描述】:
我目前在 IIS 服务器上的 Wordpress 根目录中有默认的 web.config 文件。
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<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>
但是,我想在其中添加以下几行,但我不确定在哪里添加它们:
<httpProtocol>
<customHeaders>
<add name="X-UA-Compatible" value="IE=9; IE=10; IE=11" />
</customHeaders>
</httpProtocol>
这用于在 IE 兼容模式下显示网站。
非常感谢。
【问题讨论】: