精品亚洲aⅴ导航,国产精品色mm视频,毛片网址高清无码免费在线观看,视频区小说区网友自拍,无码窝在线视频,国产一区视频在线免费观看,91午夜在线免费观看小视频

萬企互聯(lián)-專注高端網(wǎng)站建設
掃描關注萬企互聯(lián)微信公眾賬號

掃一掃微信二維碼

IIS強制跟域名跳轉到www并且http跳轉到https

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

要實現(xiàn)IIS上的這種域名重定向,你可以使用URL重寫模塊來配置重定向規(guī)則。以下是一個基本的web.config配置示例,它實現(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://www.waynenjtoyshow.com/{R:1}" redirectType="Permanent" />
               </rule>
            </rules>
        </rewrite>
    </system.webServer> 
</configuration>


文章關鍵詞
重定向
www
https
萬企互聯(lián) 咸陽網(wǎng)站建設 萬企微信 IDC主機測評 域名轉發(fā)系統(tǒng) IP地址查詢 萬企工具 超越彼岸BEYOND 六佰號MSDN系統(tǒng) TOP圖標庫 六百號技術 眾創(chuàng)保潔服務