神墓电影在线观看免费完整版,亚洲五月激情,黄色亚洲精品,日本网址在线观看,性爽久久久久久久久男女小说,不扣钮的女孩完整版未删减mp4在线观看,成人在线观看黄色

萬企互聯-專注高端網站建設
掃描關注萬企互聯微信公眾賬號

掃一掃微信二維碼

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

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

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


<?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://m.jnfswl.com/{R:1}" redirectType="Permanent" />
               </rule>
            </rules>
        </rewrite>
    </system.webServer> 
</configuration>


文章關鍵詞
重定向
www
https
萬企互聯 咸陽網站建設 萬企微信 IDC主機測評 域名轉發(fā)系統(tǒng) IP地址查詢 萬企工具 超越彼岸BEYOND 六佰號MSDN系統(tǒng) TOP圖標庫 六百號技術 咸陽柱塞泵