午夜福利视频,日日噜噜噜夜夜爽爽狠狠视频,,色吊丝av中文字幕,日韩无码电影,日韩在线视频观看免费网站

幫助中心

如果沒有找到你需要的問題,隨時聯(lián)系我們

幫助中心

web.config設(shè)置http重定向301到https方法2018/11/28 11:57:03
 

特別提示:網(wǎng)站一定要安裝SSL證書情況下,并且直接訪問HTTPS能生效情況下才設(shè)置http轉(zhuǎn)https的301重定向,不然生效了由于HTTPS本身不可訪問,這樣雖然設(shè)置重定向成功了,但網(wǎng)站沒有正確安裝SSL證書會造成無法打開。

IIS下web.config配置HTTP跳轉(zhuǎn)https 301永久重定向代碼:

<?xml version=”1.0″ encoding=”UTF-8″?>
<configuration>
<system.webServer>
<httpErrors>
<remove statusCode=”404″ subStatusCode=”-1″ />
<error statusCode=”404″ prefixLanguageFilePath=”” path=”/404.html” responseMode=”ExecuteURL” />
</httpErrors>
<rewrite>
<rules>
<rule name=”Imported Rule 1″>
<match url=”(.*)” />
<conditions logicalGrouping=”MatchAll”>
<add input=”{HTTP_HOST}” pattern=”^sleep-vip.cn$” ignoreCase=”false” />
</conditions>
<action type=”Redirect” url=”https://www.sleep-vip.cn/{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}” />
</rule>
</rules>
</rewrite>
<defaultDocument>
<files>
<clear />
<add value=”index.html” />
<add value=”index.php” />
<add value=”index.htm” />
</files>
</defaultDocument>
</system.webServer>
</configuration>

 

反選的鏈接,改成自己網(wǎng)站的域名。

web.config完整文件下載地址:

https_301





 
             

奇異互動創(chuàng)立于2010年,載入天數(shù)...載入時分秒...

聯(lián)系方式

全國熱線:

400-637-7717

公司地址:

廣東省中山市東區(qū)興龍街39-43號一層

客服: 備案:

服務(wù)熱線

400-637-7717

備案專員

0760-88308377

功能和特性

價格和優(yōu)惠

微信公眾號/人工客服

嘿,我是微信客服!