Return .htaccess files' redirects

This function lists the redirects in an account's .htaccess files.

Important:

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

SecurityBasicAuth
Request
query Parameters
destination
string

The string with which to filter results.

** Note: **

This will only return results that match the destination parameter exactly.

Example: destination=http://example.tld
regex
string

A Perl regular expression that filters the results. The system matches the regular expression to the sourceurl return value.

Example: regex="^[a-z0-9_-]{6,18}$"
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/list_redirects
Request samples
uapi --output=jsonpretty \
  --user=username \
  Mime \
  list_redirects
Response samples
application/json
{
  • "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
    }
}