> ## Documentation Index
> Fetch the complete documentation index at: https://help.eaglecart.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Automatic Region and Language Redirection in Eaglecart

> Automatically send visitors to the regional storefront for their country and show your store in their browser language, using Online Store Preferences.

[Help Center](https://help.eaglecart.com/introduction.md)

[Online store](https://help.eaglecart.com/online-store.md)

Automatic region and language redirection

# Automatic region and language redirection

If you sell in more than one region or language, Eaglecart can route visitors automatically, so they see the right storefront and language without searching for a switcher.

## Two kinds of redirection

| Setting | What it uses | What it does |
| - | - | - |
| Region redirection | The visitor's country | Sends them to the regional storefront that matches their country, when you've set one up. |
| Language redirection | The visitor's browser language | Shows your store in that language, when it's one of your store's published languages. |

You can turn each one on separately in **Online store → Preferences**.

## How region and language appear in your store URL

Eaglecart uses a region and language code in storefront URLs. For example, `/ae-en/` represents the UAE region in English. These URL paths help keep regional and language versions of your store organized and give search engines distinct URLs to discover.

* `/ae-en/`: UAE region, English.
* `/ae-ar/`: UAE region, Arabic, when Arabic is enabled and published.

The first code is the region and the second is the language. Eaglecart creates these paths automatically for the regions and languages your store supports, so you don't add them to product or page URLs yourself.

The URL structure is separate from redirection. The paths exist whether or not redirection is on. Redirection only decides which version a visitor is sent to first.

Distinct regional URLs let search engines find each version of your store, but the paths alone don't guarantee indexing or rankings. See [Regional URLs, canonical tags and hreflang](https://help.eaglecart.com/domains-seo/regional-urls-canonical-hreflang.md).

## Before you turn it on

* **For region redirection:** set up the regions you sell in under **Settings → Regions**.
* **For language redirection:** add and publish the language in **Settings → Languages**, and translate your content. Redirecting visitors to a language you haven't translated shows them mostly untranslated text. See [Add and publish store languages](https://help.eaglecart.com/online-store/store-languages.md).

## Turn on redirection

1. Go to **Online store → Preferences**.
2. Turn on region redirection, language redirection, or both.
3. Save.

## Let visitors choose for themselves

Automatic redirection makes a first guess. Visitors can still change language themselves: when your store has two or more languages, a language switcher appears in your header automatically.

> [!TIP]
>
> Test redirection from a browser set to another language, or ask someone in another country to open your store, to check visitors land where you expect.

## Keep reading

* **Next:** [Add custom code to your store](https://help.eaglecart.com/online-store/custom-code.md): add verification tags, styles and scripts.
* [Add and publish store languages](https://help.eaglecart.com/online-store/store-languages.md): set up Arabic or English.
* [Online Store Preferences](https://help.eaglecart.com/online-store/online-store-preferences.md): all storefront preferences.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.