将以下代码保存为uft8格式的web.config 文件放到IIS空间下的程序根目录。注意修改成你自己的域名。
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="www.8A.com" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_HOST}" pattern="^www.8A.com" />
<add input="{SERVER_PORT}" pattern="80" ignoreCase="false" />
</conditions>
<action type="Redirect" url="https://www.8A.com/{R:0}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Copyright © 2013-2021 8a.hk All Rights Reserved. 八艾云 版权所有 中山市八艾云计算有限公司 粤ICP备14095776号