【问题标题】:http and https versions of my site work differently我网站的 http 和 https 版本的工作方式不同
【发布时间】:2018-11-12 20:44:50
【问题描述】:

你能告诉我如何使我的网站的 https 版本像 http 一样工作吗?

https://www.sorenballard.com/

http://www.sorenballard.com/

https 只是部分工作。

谢谢 艺术

【问题讨论】:

    标签: http web https


    【解决方案1】:

    https 不起作用,因为在您的代码中您正在使用 http 请求资源。

    您需要确保所有永久链接和资源(图像、样式等)也来自 https 请求。

    例如,改变:

    <link rel="stylesheet" type="text/css" media="screen" href="http://sorenballard.com/wp-content/themes/sorenmountain/style.css" />
    

    <link rel="stylesheet" type="text/css" media="screen" href="https://sorenballard.com/wp-content/themes/sorenmountain/style.css" />
    

    【讨论】:

    • 感谢您的浏览。所以页面上所有的http引用都简单的改成https?
    • 考虑到你有 https 证书,是的。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-05-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-11-16
    • 1970-01-01
    • 2020-11-21
    相关资源
    最近更新 更多