我的站点 artindia.eu
使用了 SSL。
浏览时https://www.artindia.eu/laptop-notebook/macs例如,挂锁在 Chrome 浏览器中从绿色变为灰色。
我认为在 catalog/controller/product/category.php 中我需要添加或更改一些内容,但我不知道。
有人知道吗?
最佳答案
它非常简单的问题通常发生在 https 和 http 网站上。
例如:正在使用https
https://www.artindia.eu/laptop-notebook/macs
如果你使用
//而不是页面上所有资源的 http,挂锁将显示绿色图标。 正如它在 pagee 问题上所说的不安全内容。
这里我们举个例子来详细说明
正确( href="//fonts.googleapis.com/css?family=Roboto:300,400,500,700,900")
<link href="//fonts.googleapis.com/css?family=Roboto:300,400,500,700,900" rel="stylesheet" type="text/css" />
不正确(当我们在网站上启用了 https 时,不需要使用 http://。)
<link href="http://fonts.googleapis.com/css?family=Roboto:300,400,500,700,900" rel="stylesheet" type="text/css" />
解决方案: 请从网站上加载的所有 Assets 中删除所有 http。
关于php - SSL 配置 Opencart 3.x,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51609501/