Routing by OS, language or country

One QR code that leads to a different site depending on who scans it

Rules by system, language, or country: iPhone to the App Store, Android to Google Play, and everyone else to your website. The printed code always stays the same.

The poster is one. The person scanning it isn't: they arrive with an iPhone or Android, with their phone in English or Spanish, from your city or from another country.

Each aiLinks link can hold up to ten routing rules. A rule is a condition and a destination: "if the system is iOS → the App Store", "if the browser language is English → the English version of your site", "if the country is Mexico → your Mexican store". Rules are ordered and evaluated top to bottom: the first one that matches wins, and routing stops there.

If none match, the link's main destination is used as a fallback. There's never a blank screen or error: anyone who doesn't match any rule goes exactly where they would if you hadn't created any. That's why you can start with a single rule and add the rest with the poster already printed.

Conditions are read from the scan request itself: the operating system from the user-agent (iOS, Android, or "Others"), the browser language from Accept-Language—an "es" rule also catches someone with their phone set to es-MX—and the country from the CDN's network geolocation. Each rule's destination is validated just like the main one: only http and https, no weird schemes and no pointing to another aiLinks short link to avoid loops.

The editor lives in the link's details, under Options → Routing. You add a rule by choosing condition and destination (web, WhatsApp with message, phone, or PDF), move it up or down with the arrows to decide what wins, and delete it with the trash can. There's a one-touch iOS/Android template for the most common case. When you save, the redirect updates instantly for the next scan.

Benefits of Routing by OS, language or country

One poster for iOS and Android

the one-touch template creates the iPhone rule pointing to the App Store and you add the Android one to Google Play. No one lands on the wrong store again.

Three conditions that cover what actually changes

operating system (iOS, Android, or "Others"), browser language, and scan country. No formulas or code, just choosing from a list.

You decide the order

up to ten rules per link that are evaluated from top to bottom, and the first one that matches wins. If a country rule should take precedence over a language rule, just move it up with the arrow and you're done.

Guaranteed fallback

if no scan matches any rule, the main destination of the link opens. Routing adds cases, it never breaks what was already working.

Each rule can have its own destination type

a website, a WhatsApp with a pre-written message, a phone number, or a PDF. You're not forced to make all paths a URL.

Validated destinations in rules too

only http and https, dangerous schemes blocked, and loop detection so that a rule doesn't point to another aiLinks short link.

You know which rule is working

the link statistics include the "Applied Rule" block showing the distribution of scans by rule, and the clicks CSV includes a column with the rule for each one.

Rules and poster are independent

you can add, reorder, or remove rules whenever you want without reprinting anything, because the QR keeps encoding the same short link. And it doesn't consume AI credits: it's aiLinks' own logic.

Stephen Ramos

One QR, as many destinations as needed

Create your free aiLinks account, generate the link, add the iOS and Android rule in two taps, and download the QR in SVG for print.

One QR with destination by iPhone, Android, language or country | aiLinks