问:www.f5432.net
www.a39.com.cn
www.t39.com.cn,我想三个域名同时在web.config 设置跳转https我不会 帮帮我可以吗
答:您好,www.a39.com.cn、www.t39.com.cn 这两个是子站,您需要将它们对应跳转规则添加存放到对应子站目录的web.config中,非常感谢您长期对我司的支持!
问:<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="301" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_FROM_HTTPS}" pattern="^on$" negate="true" />
</conditions>
<action type="Redirect" url="https://www.f5432.net/{R:1}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
</system.webServer>
<rule name="301" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_FROM_HTTPS}" pattern="^on$" negate="true" />
</conditions>
<action type="Redirect" url="https://www.a39.com.cn/{R:1}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
</system.webServer>
<rule name="301" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_FROM_HTTPS}" pattern="^on$" negate="true" />
</conditions>
<action type="Redirect" url="https://www.t39.com.cn/{R:1}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
我这样加进去不对我想加一下我太笨了
答:您好,也就是说三个网站单独分别添加规则,换句话说就是要有三个web.config文件,www.a39.com.cn、www.t39.com.cn 这两个是子站,https://www.west.cn/faq/list.asp?unid=1419#win_config 这是规则,也就是说要分别单独添加web.config规则放到他们对应目录,而不是添加到一个文件,非常感谢您长期对我司的支持!
问:跪谢 就跟linux那个.h 文件一样 跪谢
答:您好,对应子站目录放对应规则就行了,现在设置好了,请测试下,非常感谢您长期对我司的支持!