> For the complete documentation index, see [llms.txt](https://help.spicegems.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.spicegems.com/geoip-country-redirect/country-redirect/create-exception-based-redirect-rule.md).

# 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 **Indian visitors**, you can create an exception-based rule with all other countries except Canada.

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

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

<figure><img src="https://2119731643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lo5KC5Ta6Fs1-alV4Av%2Fuploads%2Fu36gd1DYe7jg5704ADkA%2FException_based.gif?alt=media&amp;token=08ca87ae-7d00-4fda-956b-7a2b563b8d9e" 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](/geoip-country-redirect/settings/alpha-2-country-codes.md).
  {% endhint %}
