web.config框架

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.webServer>
    <rewrite>
   
    </rewrite>
  </system.webServer>
</configuration>

具体域名跳转到https规则

例子:IIS站点绑定域名:www.cloudduo.cncloudduo.cn 强制跳转到https://www.cloudduo.cn/

<rules>
	<clear/>
	<rule name="1557114143007_redirect" stopProcessing="true">
		<match url="(.*)"/>
		<conditions logicalGrouping="MatchAny">
			<add input="{HTTP_HOST}" pattern="^cloudduo.cn"/>
			<add input="{HTTP_HOST}" pattern="^www.cloudduo.cn"/>
		</conditions>
		<action redirectType="Permanent" type="Redirect" url="https://www.cloudduo.cn/{R:0}"/>
	</rule>
</rules>

具体域名跳转到https

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.webServer>
    <rewrite>
   <rules>
	<clear/>
	<rule name="1557114143007_redirect" stopProcessing="true">
		<match url="(.*)"/>
		<conditions logicalGrouping="MatchAny">
			<add input="{HTTP_HOST}" pattern="^bbs.cloudduo.cn"/>
		</conditions>
		<action redirectType="Permanent" type="Redirect" url="https://bbs.cloudduo.cn/{R:0}"/>
	</rule>
</rules>
    </rewrite>
  </system.webServer>
</configuration>