/** * Force SSL * * @return bool */ public function getForceSSL() { if ($this->isSubDomain()) { $force = $this->subdomain->getForceSsl(); $certificate = $this->subdomain->getCertificate(); } else { $force = $this->domain->getForceSsl(); $certificate = $this->domain->getCertificate(); } if ($certificate && !$this->getIpaddress()->getHasSsl() && $this->getRedirectUrl() == '') { return $force; } else { return false; } }