2016-06-07 160 views

回答

0
<rule name="CanonicalHostNameRule1"> 
         <match url="(.*)" /> 
         <conditions> 
          <add input="{HTTP_HOST}" pattern="^www\.farrukh.jaam\.io$" negate="true" /> 
         </conditions> 
         <action type="Redirect" url="http://farrukh.jaam.io/{R:1}" redirectType="Permanent" /> 
        </rule> 

<rule name="Redirect to HTTPS" stopProcessing="true"> 
        <match url="(.*)" /> 
        <conditions> 
         <add input="{HTTPS}" pattern="^OFF$" /> 
        </conditions> 
        <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent" /> 
       </rule> 
+0

我也想爲https添加如何? –

+0

Pramod

+0

謝謝親愛的讓我試試 –