|
发表于 2023-2-20 21:42
|
显示全部楼层
| IP未知
:
<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="X-UA-Compatible" value="IE=Edge" />
<add name="X-XSS-Protection" value="1; mode=block" />
<add name="Cache-Control" value="public, max-age=604800" />
</customHeaders>
</httpProtocol>
<rewrite>
<rules>
<rule name="Canonical Hostname" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" pattern="^example\.com$" />
</conditions>
<action type="Redirect" redirectType="Permanent" url="https://www.example.com/{R:1}" />
</rule>
<rule name="WWW Canonicalization" enabled="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^www\.(.*)$" />
</conditions>
<action type="Redirect" url="https://{C:1}{URL}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>--来源:丰县论坛机器人 |
|