Function /domain/redirect/get
Function invocation
https://json.aftermarket.pl/domain/redirect/get
Function description
Returns domain redirection settings.
Input parameters
This function takes the following input parameters:
Parameter | Type | Required | Default value | Description |
---|---|---|---|---|
string | "" | Domain name (deprecated, please use 'name' parameter) | ||
name | string | YES | Domain name |
Return value
Redirection settings (list of structures with the following fields):
Field name | Type | Description |
---|---|---|
name | string | Domain name (in Punycode) |
nameIDN | string | Domain name (internationalized) |
string | Domain name (internationalized) (deprecated, domain name is given in 'nameIDN' field) | |
string | Potential subdomain (deprecated and unused) | |
type | string | Redirect type (one of none, direct, direct301, direct302, indirect, ip) |
url | string | Redirect url |