如何将HTTPS://example.com重定向到www.example.com ==

时间:2020-07-23 02:29:38

标签: redirect iis-7

我正在尝试将example.com重定向到www.example.com

我发现所有示例(herehere)都可以使用HTTP://,但可以使用HTTP S :/ /

  1. http s ://example.com不重定向

  2. http://example.com确实会重定向。

        <rule name="Add WWW prefix" >
        <match url="(.*)" ignoreCase="true" />
        <conditions >
       <add input="{HTTP_HOST}" pattern="^bungalowsoftware.com" />
    
    
       </conditions>
       <action type="Redirect" url="https://www.bungalowsoftware.com/{R:1}"
       redirectType="Permanent" />
    

0 个答案:

没有答案