問(wèn):如何將https無(wú)條件跳轉(zhuǎn)到http?因?yàn)槲襴ww.magge.cn網(wǎng)站之前設(shè)置了https,現(xiàn)在因?yàn)槌绦騿?wèn)題,https開(kāi)頭的網(wǎng)址打開(kāi)之后頁(yè)面是亂的,我只能打開(kāi)http開(kāi)頭的www.magge.cn.所以我想暫時(shí)將帶https的網(wǎng)址轉(zhuǎn)移到http.以后我網(wǎng)站程序正常了之后我再重新設(shè)置,所以我現(xiàn)在怎么樣才能把https開(kāi)頭的網(wǎng)址,跳轉(zhuǎn)到http?,如何將https無(wú)條件跳轉(zhuǎn)到http?
答:您好,您可以使用以下規(guī)則試下,如仍存在問(wèn)題,需要我司檢查調(diào)試,請(qǐng)另提交對(duì)應(yīng)服務(wù)器工單,非常感謝您長(zhǎng)期對(duì)我司的支持!
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="301" stopProcessing="true">
<match url="^(.*)$" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_FROM_HTTPS}" pattern="^on$"/>
</conditions>
<action type="Redirect" url="http://www.magge.cn/{R:1}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
問(wèn):我現(xiàn)在服務(wù)器上的web文件是以下這樣的,換成你們給我的這些代碼之后,跳轉(zhuǎn)是可以了,但是后臺(tái)就無(wú)法使用了,所以現(xiàn)在是需要怎么調(diào)整這段代碼呢?
</rule> <rule name="Block spider"> <match url="(^robots.txt$)" ignoreCase="false" negate="true" /> <conditions> <add input="{HTTP_USER_AGENT}" pattern="AhrefsBot|SemrushBot|Webdup|AcoonBot|AhrefsBot|Ezooms|EdisterBot|EC2LinkFinder|jikespider|Purebot|MJ12bot|WangIDSpider|WBSearchBot|Wotbox|xbfMozilla|Yottaa|YandexBot|Jorgee|SWEBot|spbot|TurnitinBot-Agent|curl|perl|Python|Wget|Xenu|ZmEu" ignoreCase="true" /> </conditions> <action type="AbortRequest" /> </rule>
</rules>
</rewrite> </system.webServer>
</configuration>
答:您好,十分抱歉,這個(gè)我們無(wú)法直接判斷 出問(wèn)題,需要根據(jù)實(shí)際訪問(wèn)和查看服務(wù)器設(shè)置進(jìn)行檢查。
【主機(jī)租用/vps、云主機(jī)】–【站點(diǎn)設(shè)置】–【配置偽靜態(tài)/301跳轉(zhuǎn)/自定義404錯(cuò)誤】 您可以重新選擇這個(gè)工單分類(lèi)進(jìn)行提交,并提供服務(wù)器密碼,說(shuō)明具體的鏈接地址,我們好測(cè)試核實(shí),非常感謝您長(zhǎng)期對(duì)我司的支持!