<rule name="reto https" stopProcessing="true">
<match url="(.*)"/>
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true"/>
</conditions>
<action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}"/>
</rule>
鎸囧畾棣栭〉
<rule name="exclude the path" enabled="true" patternSyntax="Wildcard" stopProcessing="true">
<match url="*"/>
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
<add input="{HTTP_ACCEPT}" pattern="application/json*" negate="true"/>
<add input="{CONTENT_TYPE}" pattern="multipart/form-data*" negate="true"/>
</conditions>
<action type="Rewrite" url="/index.html" logRewrittenUrl="true"/>
<serverVariables></serverVariables>
</rule>
<rule name="files" stopProcessing="true">
<match url="^(.*)"/>
<conditions logicalGrouping="MatchAny" trackAllCaptures="false">
<add input="{CONTENT_TYPE}" pattern="^multipart/form-data"/>
</conditions>
<action type="Rewrite" url="https://file.xxx.com/{R:1}"/>
</rule>
<rule name="ajax" stopProcessing="true">
<match url="^(.*)"/>
<conditions logicalGrouping="MatchAny" trackAllCaptures="false">
<add input="{CONTENT_TYPE}" pattern="^application/json"/>
<add input="{HTTP_ACCEPT}" pattern="^application/json"/>
</conditions>
<action type="Rewrite" url="https://api.xxx.com/{R:1}"/>
</rule>
浠ヤ笂灏辨槸缃戠珯鏈嶅姟鍣↖IS涓紝web.config 閲嶅啓瑙勫垯鐨勮缁嗗唴瀹癸紝鏇村淇℃伅璇峰叧娉∣D浜戝叾瀹冪浉鍏虫枃绔狅紒