修改根目录和admin目录下的config.php
HTTPS_ 后面的网址链接 http后面加s即可
打开配置文件 (config.php) 找到下面这几行:
define('HTTPS_SERVER','http://opencart.mydomain.com/');
define('HTTPS_IMAGE','http://opencart.mydomain.com/image/');
编辑 HTTPS 设置,只需将 http 改为 https 即可,然后点击保存
define('HTTPS_SERVER','https://opencart.mydomain.com/');
define('HTTPS_IMAGE','https://opencart.mydomain.com/image/');
admin文件同上