在线精品免费视频,91免费国产高清在线,91久久精品国产一区二区,男人在线网站,欧洲视频一区,最新国产精品亚洲,狠狠色狠色综合曰曰

萬(wàn)企互聯(lián)-專(zhuān)注高端網(wǎng)站建設(shè)
掃描關(guān)注萬(wàn)企互聯(lián)微信公眾賬號(hào)

掃一掃微信二維碼

IIS強(qiáng)制跟域名跳轉(zhuǎn)到www并且http跳轉(zhuǎn)到https

編程代碼?2024/6/3? 618

要實(shí)現(xiàn)IIS上的這種域名重定向,你可以使用URL重寫(xiě)模塊來(lái)配置重定向規(guī)則。以下是一個(gè)基本的web.config配置示例,它實(shí)現(xiàn)了你的需求:


<?xml version="1.0" encoding="UTF-8"?>
<configuration>
 <system.webServer>
        <rewrite>
            <rules>
               <rule name="301Redirect-1" stopProcessing="true">
                  <match url="(.*)" />
                  <conditions logicalGrouping="MatchAny">
                     <add input="{HTTP_HOST}" pattern="^wan-qi\.cn$" />
                  </conditions>
                  <action type="Redirect" url="https://www.wan-qi/{R:0}" redirectType="Permanent" />
               </rule>

               <rule name="Redirect to https" stopProcessing="true">
                    <match url="^(.*)$" ignoreCase="false" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{HTTP_FROM_HTTPS}" pattern="^on$" negate="true" />
                    </conditions>
                    <action type="Redirect" url="http://fjgmzy.com/{R:1}" redirectType="Permanent" />
               </rule>
            </rules>
        </rewrite>
    </system.webServer> 
</configuration>


文章關(guān)鍵詞
重定向
www
https
萬(wàn)企互聯(lián) 萬(wàn)企微信 咸陽(yáng)網(wǎng)站建設(shè) 域名轉(zhuǎn)發(fā)系統(tǒng) IP地址查詢(xún) 萬(wàn)企工具 超越彼岸BEYOND 六佰號(hào) 秦川云 IDC主機(jī)測(cè)評(píng) 品控技術(shù)網(wǎng) TOP圖標(biāo)庫(kù)