Keyword redirects are configured by three ecr:type objects:
a
redirectsobject, which contains aredirect-groupobject, which contains one or more:redirect-entryobjects, each of which specifies the URL to which shoppers are redirected when they enter a particular search term. Multipleredirect-entryobjects, each specifying a different search term, can redirect shoppers to the same URL.
Note: It is possible to configure more than one redirect-group object, but for all ordinary purposes a single redirect-group object is sufficient.
Sample redirects configuration
The following example illustrates the configuration of a redirects object containing two redirect groups, Default (which contains the redirect-entry object id1) and Products (which contains the redirect-entry objects id2 and id3):
{
"ecr:type": "redirects",
"Default": {
"ecr:type": "redirect-group",
"id1": {
"ecr:type": "redirect-entry",
"searchTerms": "fujifilm",
"matchmode": "MATCHEXACT",
"url": "/browse/Fujifilm/_/N-1z141wh"
}
},
"Products" : {
"ecr:type": "redirect-group",
"id2" : {
"ecr:type": "redirect-entry",
"searchTerms": "canon",
"matchmode": "MATCHEXACT",
"url": "/browse/Canon/_/N-1z141ya"
},
"id3" : {
"ecr:type": "redirect-entry",
"searchTerms": "canon",
"matchmode": "MATCHEXACT",
"url": "/browse/Canon/_/N-1z141ya"
}
}
}
