A redirect is represented as a redirect object. It consist of a list of queries and the url which they should redirect to.
Attribute | Type | Required | Description |
---|---|---|---|
url | str | Required | The url for which the queries should redirect to |
queries | list of query | Required | The queries which should trigger the redirect. |
A query is represented by a query object, which consists of the query itself and a boolean that determines if the trigger should happen on an exact match or a partial match.
Attribute | Type | Required | Description |
---|---|---|---|
query | str | Required | The query that should trigger the redirect |
exact_match | boolean | Required | Determines if the trigger should only happen on an exact match. |
{
"url": "https://awesomestore.com/about-us",
"queries": [{
"query": "About",
"exact_match": false
},{
"query": "Info",
"exact_match": true
}]
}