public function goToMobile() { if (null === $this->mobileUrl) { throw new Exception('The mobile site is not set.'); } header("HTTP/1.1 302 Found"); header("Location: " . $this->mobileUrl); }