protected function validateUrl() { $this->url->stripQueryString(); $this->url->stripLastSlash(); return preg_match('~/(?:[a-z0-9]+)$~i', $this->url); }