I open the site through the 2nd domain, BUT $_SERVER['HTTP_HOST'] - shows always main domain, what is this nonsense?
Code: Select all
$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "store WHERE REPLACE(`ssl`, 'www.', '') = '" . $this->db->escape('https://' . str_replace('www.', '', $_SERVER['HTTP_HOST']) . rtrim(dirname($_SERVER['PHP_SELF']), '/.\\') . '/') . "'");
the essence of the problem lies in the fact that while on the 2nd domain, I still see the links of the first... and i see in controller startup.php it detects the wrong domain
P.S Opencart 126.96.36.199