宝塔如何配置跳转到https

因为宝塔默认了webconfig 文件。修改后容易500错误
宝塔后台,网站-设置-伪静态
808
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name=”http redirect to https” stopProcessing=”true”>
<match url=”(.*)” />
<conditions>
<add input=”{HTTPS}” pattern=”^OFF$” />
<add input=”{HTTPS_HOST}” pattern=”^(localhost)” negate=”true” />
</conditions>
<action type=”Redirect” url=”https://{HTTP_HOST}/{R:1}” />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

标签

发表评论

在线客服
网推老杨
微信搜索“网推老杨(wangtuilaoyang)”。关注公众号「网推老杨」获取更多资源和快速找到老杨。
2024-07-16 21:26:48
您好!欢迎访问网推老杨博客,有什么需要帮助吗?点击下下方聊天工具开始咨询。
您的工单我们已经收到,我们将会尽快跟您联系!
[网推老杨QQ]
1589023666
扫码添加网推老杨微信
[工作日拨打]
02968891172
[投稿给老杨]
tuifa666@qq.com
取消

选择聊天工具: