Redirecct to HTTPS

rusli
Site Admin
文章: 212
註冊時間: 週三 7月 07, 2010 9:49 pm

Redirecct to HTTPS

文章rusli » 週五 5月 25, 2012 9:41 am

web.config

代碼: 選擇全部


        <rewrite>
            <rules>
                <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="SeeOther" />
                </rule>
            </rules>
        </rewrite>
  </system.webServer>


回到「IIS」

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客