Keyword redirects are configured by three ecr:type objects:

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"
        }
  }
}

Copyright © 1997, 2016 Oracle and/or its affiliates. All rights reserved. Legal Notices