URL | POST {{basepath}}/redirectdomain/:domain/rule |
---|---|
Category | Redirect |
Adds rules to a redirectDomain
Expects a RedirectDomainAddRulesRequest object.
Returns a RedirectDomainAddRulesResponse object.
:domain | {{testdomain}} |
---|
{
"rules": [
{
"subdomain": "*",
"path": "\/partyboat*",
"action": "302",
"target": "https:\/\/control-ote.metaregistrar.com___path___#partyboatstar"
},
{
"subdomain": "*",
"path": "\/party*",
"action": "302",
"target": "https:\/\/control-ote.metaregistrar.com___path___#party"
},
{
"subdomain": "*",
"path": "\/*",
"action": "302",
"target": "https:\/\/control-ote.metaregistrar.com\/everythingelse"
}
]
}
POST {{basepath}}/redirectdomain/:domain/rule
{
"rules": [
{
"subdomain": "*",
"path": "\/party",
"action": "301",
"target": "https:\/\/www.metaregistrar.com\/party"
}
]
}
:domain | example2.com |
---|
200 OK
{
"responseId": "mapi1_143b5446b9733b9c76152c2c5fbf1bbc1c75c081",
"status": "ok",
"message": "RedirectDomain updated, pending sync"
}