public static function GetServerRootUrl()
	{
		$url = self::GetCurrentURL(false);
		$parts = explode('/', $url);
		if (count($parts) < 2) throw new Exception('RequestUtil is unable to determine the server root');
		return $parts[0] . '//' . $parts[2] . '/';
	}
public static function GetServerRootUrl()
	{
		$url = self::GetCurrentURL(false);
		$parts = explode('/', $url);
		if (count($parts) < 2) throw new Exception('RequestUtil is unable to determine the server root');
		return $parts[0] . '//' . $parts[2] . '/';
	}
public static function GetServerRootUrl ( ) { $ url = self :: GetCurrentURL ( false ) ; $ parts = explode ( '/' , $ url ) ; if ( count ( $ parts ) < 2 ) throw new Exception ( 'RequestUtil is unable to determine the server root' ) ; return $ parts [ 0 ] . '//' . $ parts [ 2 ] . '/' ; }
Returns the root url of the server without any subdirectories
@return string URL path with trailing slash
Returns the root url of the server without any subdirectories