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.

SecurityBasicAuth
Request
query Parameters
domain
required
string <domain>

The domain name.

Example: domain=example.com
args
string
Default: ""

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

Example: args=redirectme http://redirectme.com/
docroot
string <path>

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.

Example: docroot=/home/example/public_html/
src
string
Default: ""

The specific page that redirects visitors.

Example: src=redirectpage.html
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/Mime/delete_redirect
Request samples
uapi --output=jsonpretty \
  --user=username \
  Mime \
  delete_redirect \
  domain='example.com'
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "delete_redirect",
  • "module": "Mime",
  • "result": {
    • "data": null,
    • "errors": null,
    • "messages": null,
    • "metadata": { },
    • "status": 1,
    • "warnings": null
    }
}