问:网站做了重定向之后就无法访问了,
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.west.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地址,并打开站点了,请您现在测试;非常感谢您长期对我司的支持!