public static function rebuildUrl(array $urlArray)
        {
            $url = '';

            foreach ($urlArray as $segment) {
                if (strlen($segment)) $url .= '/' . trim($segment);
            }

            return self::normalizeUrl($url);
        }