This function lists the redirects in an account's .htaccess files.
Important:
When you disable the Web Server role, the system disables this function.
uapi --output=jsonpretty \ --user=username \ Mime \ list_redirects
{- "apiversion": 3,
- "func": "list_redirects",
- "module": "Mime",
- "result": {
- "data": [
- {
- "displaydomain": "ALL",
- "displaysourceurl": "/marceau.html",
- "docroot": "/home/example/public_html",
- "domain": "example.com",
- "kind": "rewrite",
- "matchwww": 1,
- "matchwww_text": "checked",
- "opts": "L",
- "source": "/marceau.html",
- "sourceurl": "/marceau.html",
- "statuscode": "301",
- "type": "permanent",
- "urldomain": "example.com",
- "wildcard": 1,
- "wildcard_text": "checked"
}
], - "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}