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

# Conditional redirection

> Redirect visitors differently based on device, location, or time.

## What conditional redirection does

Conditional redirection sends scanners to different destination URLs based on **Country**, **Device**, **Operating System**, or **Browser Language** — all from a single dynamic QR code. It's a different feature from [QR code scheduling](/qr-codes/manage/scheduling) and [GPS & geofencing](/qr-codes/manage/gps-geofencing): those live on a QR code's **Settings** tab and react to time or location, while conditional redirection is wired into the **URL itself** — the field where you set what a link or button points to — and reacts to who's scanning.

<Note>
  Live UI wording: the modal is titled **Traffic Routing Rules**, with the subtext **"Sets are checked top to bottom. The first match wins."**
</Note>

You'll find it in two places that both open the same modal:

* The **URL field of a link or button block** in the page builder.
* The **Advanced settings** of a Website URL Quick Code, under a **Conditional Redirection** toggle.

## Setting up a rule

<Steps>
  <Step title="Open the URL's conditional redirection option">
    <Tabs>
      <Tab title="Quick Code">
        While creating or editing a Website URL Quick Code, open **Advanced settings** and turn on the **Conditional Redirection** toggle. A **Configure rules** button appears.

        <Note>
          Until at least one rule is added, the section shows "Add at least one rule, or turn this off — it won't do anything until then."
        </Note>
      </Tab>

      <Tab title="Page builder">
        On a link or button block's URL field in the page builder, open the conditional rules option next to it.
      </Tab>
    </Tabs>
  </Step>

  <Step title="Select a condition field and operator">
    In **Condition Set 1**, the first row is prefixed **IF**. Choose a field — **Country**, **Device**, **Operating System**, or **Browser Language** — and an operator, **Includes** or **Excludes**.
  </Step>

  <Step title="Choose one or more values">
    Use the **Search or select…** box to pick one or more values for that field (for example, several countries). Selected values appear as removable chips. Select **+ Add condition** to add another condition to the same set — additional conditions within one set are combined with AND.
  </Step>

  <Step title="Set the redirect URL for this condition set">
    Under **Redirect Users To**, enter the URL visitors matching this condition set should land on.
  </Step>

  <Step title="Add more condition sets if needed">
    Select **+ Add Condition Set** to add another ordered set of conditions with its own redirect URL. Sets are evaluated top to bottom, and the first matching set wins — later sets are never checked once an earlier one matches.
  </Step>

  <Step title="Save">
    Select **Save rules**.

    <Frame caption="Traffic Routing Rules modal with one condition set configured: Country Includes Germany, redirecting to a localized URL">
      <img src="https://mintcdn.com/scanova-api/q8t3kzcRTgAP7jV0/images/v2/qr-codes/manage/conditional-redirection/traffic-routing-rules-configured.png?fit=max&auto=format&n=q8t3kzcRTgAP7jV0&q=85&s=78e338c6d8702a7b49a621e026ea5f03" alt="Traffic Routing Rules modal showing a condition set with field Country, operator Includes, value Germany, and a Redirect Users To field set to a localized URL, plus a Default redirect section showing the button's primary URL" width="860" height="662" data-path="images/v2/qr-codes/manage/conditional-redirection/traffic-routing-rules-configured.png" />
    </Frame>
  </Step>
</Steps>

## Default redirect for non-matching visitors

A **Default redirect** panel at the bottom of the modal shows the URL visitors are sent to when they don't match *any* condition set — this is always the primary URL already set on the button or link, shown read-only for reference. There's no separate field to configure it here; change the primary URL itself if you need to change this fallback.

## Saved templates

The modal has two tabs: **Set Up** (the rule sets described above) and **Saved Templates**. Select **Save as template** to store a configured set of rules by name so you can re-apply the same routing logic to other links or buttons later, instead of rebuilding it from scratch.

<Warning>
  Any redirect URL you leave blank is dropped when you save — condition sets need a redirect URL to take effect. If you enter a URL, it's validated on save; an invalid URL blocks saving with a toast asking you to fix it.
</Warning>

## Related

* [QR code scheduling](/qr-codes/manage/scheduling) — reacts to time instead of who's scanning, on the QR code's Settings tab.
* [GPS & geofencing](/qr-codes/manage/gps-geofencing) — reacts to visitor location instead of country/device/OS/language.
* [Blocks reference](/page-builder/blocks-reference) — link and button blocks are where conditional redirection is configured in the page builder.
