WordPress "Loading mixed (insecure) display content on a secure page"

WordPress "Loading mixed (insecure) display content on a secure page"

我对网络开发还很陌生。我使用 WordPress 开发了这个 website。 它工作正常,它也有 SSL 证书。

homepage, I can see the secure icon (lock icon) in the URL box but when I navigate to the about us page 上,我在控制台中收到以下错误消息,并且在 URL 框中看不到安全图标

Loading mixed (insecure) display content “http://52.76.129.235/wp-content/uploads/2020/01/uam-footer.jpg” on a secure page

我尝试调试错误。这些是我所做的事情:

  1. 使用名为 Better Search Replace 的插件将 http 替换为 https

  2. 手动将数据库中所有具有 http 的值更改为 https

  3. 已将 define('FORCE_SSL_ADMIN', true); 添加到 WordPress 根文件夹中的 wp-config.php

谁能告诉我如何解决这个错误?我试图找到错误消息中给出的URL,但没有找到。

当然,这非常简单,您只需按照一些步骤操作即可。

  1. 安装并激活 Really Simple SSL 插件。
  2. 激活后,顶部会出现一条通知,上面有一个按钮,上面写着继续,激活 SSL,单击该按钮即可。
  3. 现在,转到设置 > SSL 并在开关中启用 WordPress 301 重定向

就这么简单。如果您需要额外的配置,您也可以购买 Really Simple SSL Pro

如需进一步回复,请随时与我联系。希望这个方法对你有用。