【问题标题】:Changing http to https in wordpress website, activate ssl certificate在wordpress网站中将http更改为https,激活ssl证书
【发布时间】:2018-01-06 20:17:31
【问题描述】:

嘿,我已经激活了一个 ssl 证书,所有路由都停止了工作。我修复了数据库中的每个 url/地址,并在 ftp 文件中将所有 http:// 替换为 https://,还手动搜索了代码中的 http 出现,但一无所获。我做了很多教程,搜索了很多网站,但解决方案似乎更复杂。如果有人过去处理过像我这样的问题,请告诉我如何解决。

css 和 js 资产的修复还有待解决:

混合内容:“https://wiadomosci.nowakonstytucja.org/”处的页面通过 HTTPS 加载,但请求的样式表“http://wiadomosci.nowakonstytucja.org/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=4.8”不安全。此请求已被阻止;内容必须通过 HTTPS 提供。

混合内容:“https://wiadomosci.nowakonstytucja.org/”处的页面通过 HTTPS 加载,但请求了不安全的脚本“http://wiadomosci.nowakonstytucja.org/wp-content/plugins/contact-form-7/includes/js/scripts.js?ver=4.8”。此请求已被阻止;内容必须通过 HTTPS 提供。

【问题讨论】:

    标签: wordpress http ssl https migration


    【解决方案1】:

    尝试安装“Really Simple SSL”插件。它应该可以解决问题。

    【讨论】:

      【解决方案2】:

      不要通过整个 URL“'http://wiadomosci.nowakonstytucja.org/wp-content/plugins/contact-form-7/includes/js/scripts.js?ver=4.8'”引用文件

      如果文件是本地文件,则通过 "/wp-content/plugins/contact-form-7/includes/js/scripts.js?ver=4.8'" 引用它,您将完全避免整个 http 情况.

      Google 会处理一些尚未升级的文件。

      【讨论】:

        猜你喜欢
        • 2020-08-06
        • 2015-08-27
        • 1970-01-01
        • 2021-01-08
        • 1970-01-01
        • 1970-01-01
        • 2016-08-07
        • 1970-01-01
        • 2019-08-26
        相关资源
        最近更新 更多