将无抵押的域重定向到将HTTP固定到HTTPS
我使用此(web.config)将我的所有域从http重定向到https:
<rule name="ssl redirect" enabled="true" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" appendQueryString="false" />
</rule>
但是,这对一个末端的域不起作用:
mydomain7.com
有什么建议吗? 谢谢
I used this (web.config) to redirect all my domain from http to https:
<rule name="ssl redirect" enabled="true" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{HTTPS}" pattern="^OFFquot; />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" appendQueryString="false" />
</rule>
However this wont work for a domain with number at the end:
mydomain7.com
any suggestion?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通过添加重定向类型解决了问题,还添加了其他输入:
I solved the issue by adding redirect type and also add additional input: