1、SSL 已经配置好
2、按照 部署https(ssl)后设置301跳转将http跳转到https
http://faq.myhostadmin.net/faq/listagent.asp?unid=1419的教程设置
3、发现根目录下已有web.config文件
4、按教程复制下面代码到web.config文件内以后
- <?xml version="1.0" encoding="UTF-8"?>
- <configuration>
- <system.webServer>
- <rewrite>
- <rules>
- <rule name="301" stopProcessing="true">
- <match url="^(.*)[ DISCUZ_CODE_1 ]quot; ignoreCase="false" />
- <conditions logicalGrouping="MatchAll">
- <add input="{HTTP_FROM_HTTPS}" pattern="^on[ DISCUZ_CODE_1 ]quot; negate="true" />
- </conditions>
- <action type="Redirect" url="https://www.abc.com/{R:1}" redirectType="Permanent" />
- </rule>
- </rules>
- </rewrite>
- </system.webServer>
- </configuration>
复制代码5、报错信息如下