List rewrites
GET
/rewrites/list.json
GET
/rewrites/list.json
[
{
"id": "5b11651ebc3921dbe8bfc328",
"from": "/old-page",
"to": "/new-page",
"http_code": "301",
"add_date": "2018-06-01T17:24:14+0200"
},
...
]
POST
/rewrites/rewrite.json
from required (string) | Old rewrite you want to redirect to new url |
to required (string) | Routing destination url |
http_code (string) | Values: 301 => Permanent302 => Temporarily Moved200 => 200 Ok Create an empty blank page that produce an http/1.1 200 ok
|
{
"ok": 1,
"n": 1,
"err": null,
"errmsg": null,
"updatedExisting": false
}
DELETE
/rewrites/rewrite.json
id required (StoredenID) |
Unique id of rewrite url After removal, data propagation can take a few minutes |
{
"ok": 1,
"n": 1,
"err": null,
"errmsg": null,
"updatedExisting": false
}