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.
Example response
{
"apiversion": 3,
"func": "delete_redirect",
"module": "Mime",
"result": {
"status": 1
}
}