Where to place <httpProtocol> in IIS Server web.config file Where to place <httpProtocol> in IIS Server web.config file wordpress wordpress

Where to place <httpProtocol> in IIS Server web.config file


You should put it under the system.webServer node of the file:

<?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>        <!-- PUT IT HERE -->        <httpProtocol>          <customHeaders>            <add name="X-UA-Compatible" value="IE=9; IE=10; IE=11" />          </customHeaders>        </httpProtocol>    </system.webServer></configuration>