# Exception-Based Redirect Rule

An Exception-Based Redirect Rule allows you to redirect visitors from all countries except specific countries.&#x20;

For example, if you want to redirect all visitors to the global store except **Canadian visitors**, you can create an exception based rule with all other countries except Canada.

For an exception-based redirect rule, [create a redirect rule](https://help.spicegems.com/geoip-country-redirect/country-redirect/create-redirect-rule), and add all the visitor countries except the country that you don't want to redirect.

In the below snapshot, we have created a rule and added all countries in the "**Visitors Country**" except Canada.

### 1. Add all countries

<figure><img src="https://2119731643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lo5KC5Ta6Fs1-alV4Av%2Fuploads%2FKYrzVo1jmO1qEFnSFiWn%2F1.%20Image.png?alt=media&#x26;token=c018a0be-2680-4221-985e-06ff5a6285ba" alt=""><figcaption></figcaption></figure>

### 2. Remove countries that you don't want to redirect

Not added Canada

<figure><img src="https://2119731643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lo5KC5Ta6Fs1-alV4Av%2Fuploads%2FS0KZJiXB8nMvqVkO7kpL%2F2.%20Image.png?alt=media&#x26;token=3e220212-7197-4030-be54-dc64f836e06a" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
In the app, you can add alpha-2 codes to add multiple countries in bulk:

To add the countries in the rule, you need to add **alpha-2 country codes** in **comma-separated** (e.g., `US, UK, FR, DE`).

* You can find the [alpha-2 codes for all countries here](https://help.spicegems.com/geoip-country-redirect/general-settings/alpha-2-country-codes).
  {% endhint %}
