This service is available via Telligent.Evolution.Extensibility.Apis.Get<Telligent.Evolution.Extensibility.Api.Version1.IUrlRedirects>()
Methods
UrlRedirect Create(string oldUrl, string newUrl, bool isPrefix, UrlRedirectCreateOptions options = null);
Creates a url redirect from an old page to a new one
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| oldUrl | string | The outdated url that no longer is valid. | Required | ||
| newUrl | string | The new url that the request should be redirected to. | Required | ||
| isPrefix | bool | Flag specifying whether the url is a full url or just a prefix (eg for a group or application) | Required | ||
| options | UrlRedirectCreateOptions | Create options | Optional |
Return Type
AdditionalInfo Delete(string toUrl, bool isPrefix, UrlRedirectDeleteOptions options = null);
Removes URL redirects to a target URL
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| toUrl | string | The target url to be removed | Required | ||
| isPrefix | bool | Flag specifying whether the url is a full url or just a prefix (eg for a group or application) | Required | ||
| options | UrlRedirectDeleteOptions | Delete options | Optional |
Return Type
AdditionalInfo Delete(int id);
Delete a URL redirect by its ID.
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| id | int | Id | Required |
Return Type
UrlRedirect Get(int id);
Gets a url redirect by its identifier.
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| id | int | Id | Required |
Return Type
PagedList<UrlRedirect> List(UrlRedirectListOptions options = null);
Lists URL redirects.
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| options | UrlRedirectListOptions | Options | Optional |