Answer the question
In order to leave comments, you need to log in
How to properly configure https on OpenCart 2.3?
The Internet is full of absolutely useless articles on this topic, which do not even come close to helping solve the problem
Problem:
When you enable https in the config + admin panel, the admin panel really works buzzing. But the showcase does not work with the https protocol
Pay attention to system/library/url.php
public function link($route, $args = '', $secure = false) {
if ($this->ssl && $secure) {
$url = $this->ssl . 'index.php?route=' . $route;
}
$this->config->get('config_secure'); // return false
public function link($route, $args = '', $secure = true) {
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://prod.e-web.loc/$1 [R=301,L]
Answer the question
In order to leave comments, you need to log in
Thank you! + also helped me: https://microdata.pro/opencart-dev/https-ssl-encrypt
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question