This function adds a redirect to a domain.
Important:
When you disable the Web Server role, the system disables this function.
uapi --output=jsonpretty \ --user=username \ Mime \ add_redirect \ domain='example.com' \ redirect='http://example.com/'
{- "apiversion": 3,
- "func": "add_redirect",
- "module": "Mime",
- "result": {
- "data": null,
- "errors": null,
- "messages": [
- "Htaccess Installed"
], - "metadata": { },
- "status": 1,
- "warnings": null
}
}