Keyword redirects are configured by three ecr:type
objects:
a
redirects
object, which contains a single:redirect-group
object, which contains one or more:redirect-entry
objects, each of which specifies the URL to which shoppers are redirected when they enter a particular search term. Multipleredirect-entry
objects, 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 a redirect-group
object named Products
, which contains redirect-entry
objects named id1
and id2
:
{ "ecr:type": "redirects", "Products" : { "ecr:type": "redirect-group", "id1" : { "ecr:type": "redirect-entry", "searchTerms": "canon", "matchmode": "MATCHEXACT", "url": "/browse/Canon/_/N-1z141ya" }, "id2" : { "ecr:type": "redirect-entry", "searchTerms": "nikon", "matchmode": "MATCHEXACT", "url": "/browse/Nikon/_/N-1z141ya" } } }