v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
Mime
Domain Redirection

Remove redirect from domain

This function removes a redirect from a domain.

Important:

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

get/Mime/delete_redirect

Query parameters

domainstring domain required
Example:example.com

The domain name.

argsstring
Example:redirectme http://redirectme.com/

An argument string that contains the arguments of a Redirect or RedirectMatch directives.

docrootstring path
Example:/home/example/public_html/

The absolute file path to the document root containing the .htaccess file to change.

If you don't pass this parameter, the system looks up the document root from the domain parameter's value.

srcstring
Example:redirectpage.html

The specific page that redirects visitors.

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": "delete_redirect",
  "module": "Mime",
  "result": {
    "status": 1
  }
}