public static function getBaseUrl()
    {
        $uri = self::addBackSlash(self::getUriMethods(), 'both');
        $url = self::addBackSlash(self::getCurrentPage());

        if ($uri !== '/') {
            $url = trim(str_replace($uri, '', $url), '/');
        }

        return self::addBackSlash($url);
    }