問(wèn):網(wǎng)站做了重定向之后就無(wú)法訪問(wèn)了,
http 重定向到HTTPS
這個(gè)是我重定向的內(nèi)容;
<?xml version="1.0" encoding="utf-8"?>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
</system.web>
,網(wǎng)站做了重定向之后就無(wú)法訪問(wèn)了,dtdianzi.com
答:您好,
您添加的跳轉(zhuǎn)規(guī)則不正確,您可以參考http://m.ps-sw.cn/faq/list.asp?unid=1419 添加規(guī)則,讓http跳轉(zhuǎn)到https;非常感謝您長(zhǎng)期對(duì)我司的支持!
問(wèn):我已按照上面的部署好了,但是網(wǎng)站還是打不開(kāi)
<?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$" negate="true" />
</conditions>
<action type="Redirect" url="https://www.dtdianzi.com/{R:1}" redirectType="Permanent" /> # www.abc.com對(duì)應(yīng)修改為您自已的域名
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
問(wèn):您好,
查詢之前是web.config中添加的內(nèi)容<?xml version="1.0" encoding="UTF-8"?>的前面有多余空行導(dǎo)致,另外中文注釋也有影響,已經(jīng)為您調(diào)整,測(cè)試訪問(wèn)www.dtdianzi.com已經(jīng)可以跳轉(zhuǎn)到https地址,并打開(kāi)站點(diǎn)了,請(qǐng)您現(xiàn)在測(cè)試;非常感謝您長(zhǎng)期對(duì)我司的支持!