問:網站做了重定向之后就無法訪問了,
http 重定向到HTTPS
這個是我重定向的內容;
<?xml version="1.0" encoding="utf-8"?>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
</system.web>
,網站做了重定向之后就無法訪問了,dtdianzi.com
答:您好,
您添加的跳轉規則不正確,您可以參考http://www.shinetop.cn/faq/list.asp?unid=1419 添加規則,讓http跳轉到https;非常感謝您長期對我司的支持!
問:我已按照上面的部署好了,但是網站還是打不開
<?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對應修改為您自已的域名
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
問:您好,
查詢之前是web.config中添加的內容<?xml version="1.0" encoding="UTF-8"?>的前面有多余空行導致,另外中文注釋也有影響,已經為您調整,測試訪問www.dtdianzi.com已經可以跳轉到https地址,并打開站點了,請您現在測試;非常感謝您長期對我司的支持!