You should use: Tools::getShopDomainSsl(true, true);