Description
This function retrieves redirect information for a URL or ** All Public Domains **
.
Examples
{
"messages": null,
"errors": null,
"status": 1,
"data": {
"domain": "example.com\n",
"url": "http://redirect.example.com\n"
}
}
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
url |
string |
Required The URL for which to retrieve redirector information. |
A valid URL. |
http://redirect.example.com |
domain |
string |
Required The domain for which to retrieve redirector information. |
A valid domain. |
example.com |
Returns
Return |
Type |
Description |
Possible values |
Example |
url |
string |
The redirect's URL. |
A valid URL. |
http://redirect.example.com |
domain |
string |
The redirect's domain, or ** All Public Domains **. |
|
example.com |