v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
Mime
Handler Management

Return redirect information

This function retrieves redirect information for a URL or ** All Public Domains **.

Important:

When you disable the Web Server role, the system disables this function.

get/Mime/redirect_info

Query parameters

domainstring domain required
Example:example.com

The domain for which to retrieve redirector information.

urlstring url required
Example:http://redirect.example.com

The URL for which to retrieve redirector information.

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "redirect_info",
  "module": "Mime",
  "result": {
    "data": {
      "url": "http://redirect.example.com"
    },
    "status": 1
  }
}