# Routing rules

Send visitors of one short link to different destinations by country, device, or traffic split.

Canonical: https://easerix.com/docs/links/routing-rules

<Answer>
Routing rules send visitors of one short link to different destinations.
Three rule types exist — Country, Device, and Split — and they're checked in
that order on every visit; anyone who matches nothing goes to the main
destination. Configure up to 20 rules on the link's detail page.
</Answer>

## Add a rule

1. Open **Links**, select a link, and find the **Routing rules** card on its detail page.
2. Choose **+ Add rule** and pick a type:
   - **Country** — a 2-letter country code, like `DE`.
   - **Device** — `mobile`, `tablet`, or `desktop`.
   - **Split** — a traffic share from 1 to 99 percent, for A/B tests.
3. Set the rule's **Destination URL** and, optionally, a **Label (for analytics)**.
4. Choose **Save rules**.

## How rules are evaluated

Every visit runs the same fixed order:

| Order | Check |
|---|---|
| 1 | Country rules — first match on the visitor's country wins |
| 2 | Device rules — first match on the visitor's device wins |
| 3 | Split rules — traffic divides by the weights you set |
| 4 | No match → the link's main destination |

Split weights across a link must sum to 99 or less; the remainder of traffic stays on the main destination.

## See which variant won

Once rules start matching, the link's detail page shows a **Variants (A/B)** breakdown — clicks per rule, named by the label you gave each one. Label your rules something readable (`homepage-b`, `de-landing`) and the analytics stay readable too.

## Good to know

- Redirects are cached briefly for speed — rule changes can take up to about 30 seconds to apply.
- Up to **20 rules per link**.
- Destinations without a scheme get `https://` added automatically.

## Frequently asked questions

### Can I route by browser, referrer, or time of day?

Not yet — routing matches country, device, and traffic split today. Browser, OS, and referrer are still recorded on every click, so you can see those breakdowns in the link's [analytics](/links/analytics).
