渚嬪瓙涓
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="301" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAny">
<add input="{HTTP_FROM_HTTPS}" pattern="^on$" negate="true" />
<add input="{HTTP_HOST}" pattern="^www.odweb.cn$" negate="true" />
</conditions>
<action type="Redirect" url="https://www.odweb.cn/{R:1}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

stopProcessing=鈥漷rue鈥濆綋鎵ц瑙勫垯鎿嶄綔锛堝嵆鍖归厤鐨勮鍒欙級骞舵墦寮姝ゆ爣蹇楁椂锛岃繖鎰忓懗鐫涓嶅啀澶勭悊鍚庣画瑙勫垯锛屽苟涓旇姹傚皢琚紶閫掑埌IIS璇锋眰绠¢亾銆

ignoreCase=鈥漟alse鈥濆拷鐣ュぇ灏忓啓

MatchAny 浠绘剰鍖归厤锛屾垚鍔熷尮閰嶅埌涓涓氨鎵цaction 鐩稿綋浜巓r

MatchAll 瀹屽叏鍖归厤锛屽尮閰嶆墍鏈夎鍒欙紝閮芥垚绔嬫墠鎵цaction 鐩稿綋浜巃nd

negate=鈥漷rue鈥濅唬琛ㄥ彇鍙嶏紝姣斿HTTP_FROM_HTTPS 涓嶇瓑浜巓n 涓虹湡

渚嬪瓙涓鐨勫惈涔夋槸http璺宠浆鍒癶ttps锛屾瘮濡俬ttps://odweb.cn涔熶細璺宠浆鍒癶ttps://www.odweb.cn

渚嬪瓙浜

鎴戞湁涓涓墜鏈虹珯m.odweb.cn锛屼笉鎯宠烦杞埌https://www.odweb.cn

<?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" />
<add input="{HTTP_HOST}" pattern="^m.odweb.cn$" negate="true" />
</conditions>
<action type="Redirect" url="https://www.odweb.cn/{R:1}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>


浠ヤ笂灏辨槸web.config瑙勫垯http璺宠浆鍒癶ttps瑙勫垯鐨勮缁嗗唴瀹癸紝鏇村淇℃伅璇峰叧娉∣D浜戝叾瀹冪浉鍏虫枃绔狅紒



鏈枃URL锛http://www.odweb.cn/news_show.html?id=228