Click or drag to resize
URLHelperGetDomain Method
Returns domain or domain with port if present from specific URL.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax
C#
public static string GetDomain(
	string url
)

Parameters

url
Type: SystemString
Input URL in format http(s)://domain

Return Value

Type: String
See Also