Post by cha0s » Fri Apr 23, 2021 7:49 pm

Hello, I can't understand what the problem is, the second domain has the same folder path as the main one, and of course added in store settings, BUT

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']), '/.\\') . '/') . "'");
			
I open the site through the 2nd domain, BUT $_SERVER['HTTP_HOST'] - shows always main domain, what is this nonsense?

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 3.0.3.2

Newbie

Posts

Joined
Tue Aug 27, 2013 9:07 pm

Post by ADD Creative » Fri Apr 23, 2021 9:52 pm

HTTP_HOST is set from the request. Maybe you have a redirect set up or some server configuration issue.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom
Who is online

Users browsing this forum: Bing [Bot], OSWorX and 321 guests