In this post I will talk about creating and using  the Redirect rules. It is recommended to read the following posts first

Anatomy of a redirect Rule

Lets say you are running two stores. One for Canada and One for USA. The US based store also acts as a global store

In this case you can use the App to achieve the following

  • All Canadian visitors on the USA stores are redirected to the Canada specific Store.
  • All US visitors on the Canada store are redirected to the US specific store.
  • All visitors visiting the Canada store from outside the USA are directed to the USA store as it is also meant for the global audience.

Here are instructions:

Install the app on both USA and Canada store and configure accordingly.

Configure the App on the Canada Store

Install the App on the Canada store and create following Redirect rule

Rule 1

USA Visitors are redirected to the USA store. This rule is self explanatory

Rule 2

Canada Visitor are redirected to the Canada store.  If a visitor is coming form Canada then he should not be redirected. this rule ensures that the Canadian visitor will not see the redirect message.

FallBack Setting

We will configure the fallback setting to ensure that every visitor coming from country other than USA or Canada will  be redirected to the USA store. The fallback setting is fired when a visitor arrives from a country which is not covered by the redirect rules.  So in fallback settings simply enter the URL and the name of the USA store. So , for example, if a visitor arrives from Australia, the fallback setting will be fired and he will be redirected to the USA store.

Configure the App on the USA store

Create the following rules

Rule 1

Canada Visitors are redirected to the Canada store. This rule is self explanatory

Rule 2

USA Visitor are redirected to the USA store.  If a visitor is coming form USA then he should not be redirected. this rule ensures that the USA visitor will not see the redirect message.

There is no need to create a fallback rule for the USA store. So simply leave the fallback settings as blank.

This is it. Now your Canadian , American and global visitors will be redirected to the stores best suited for them.