Routing rules

One short link, the right page for every visitor.

Send visitors to different addresses by country, operating system or device. The rules are checked by your Bunny edge script in the moment of the click, with no WordPress involved.

  • Country
  • Operating system
  • Device
  • Clear order
Link editor · Geo-targeting
Geo-targeting with two country rules
Decided at the edge

Your Bunny edge script does the work in the moment of the click, from the location nearest the visitor.

Zero WordPress database calls

Links, clicks and settings live in your own Bunny database. WordPress is only the dashboard.

Keeps working

Links answer even when WordPress is slow, updating or down.

What it does

Rules decide where each click goes.

A routing rule sends some visitors somewhere else than the link’s main destination. Visitors from the US and Canada can go to your US store, iPhone visitors to the App Store, tablets to a tablet page, and everyone else to the main address.

Rules are part of the link, so you share one short link everywhere and the edge script sorts the visitors. Visitors who match no rule go to the main destination.

At a glance

Country rules
Country codes, like US,CA,GB
Operating systems
ios, android, windows, macos, linux
Devices
mobile, tablet, desktop
Several values
Separate with | or ,
No match
The link’s main destination
Where it runs
Your Bunny edge script

Geo-targeting

Send each country to its own page.

In the link editor, click Add country rule, enter the country codes separated by commas, and the address for them. Add as many country rules as you need.

Visitor countries come from Bunny, so country rules work with every Visitor location setting, including Country only (Bunny), where visitor IPs never leave Bunny.

Geo-targeting with two country rules

Mobile targeting

Different pages for iPhone, Android and desktop.

Click Add OS rule for ios, android, windows, macos or linux, or Add device rule for mobile, tablet or desktop. windows matches every version of Windows.

Mobile targeting with an iOS rule and a tablet rule

Which rule wins

A clear order when several match.

When a visitor matches more than one rule, the first kind in this list wins. So a US visitor on an iPhone goes to the US address when you have both a US rule and an iOS rule.

OrderRuleApplies to
1Deep link rulesPhones only
2CountryEveryone
3Operating systemEveryone
4DeviceEveryone
5A/B splitEveryone left

Set it up

Add a rule in a minute.

  1. Open the linkClick it on the Links page to open the full editor.
  2. Add the ruleAdd country rule, Add OS rule or Add device rule, with the values and the address.
  3. SaveClick Save changes. The rule works at once where your site talks to Bunny, and everywhere within about 30 seconds.
Step by step in the docs →

Good to know

The details, before you buy.

Results per rule

Each link’s analytics shows clicks, share and conversions for each rule in Routing & A/B results.

Over the API

Rules can be set with the API: geo, os, device, deeplink and ab. Sending rules replaces them all.

Health checks

Status checks every rule destination once a day, not only the main one.

Ideas

What people use routing rules for.

Country storesOne link in a global campaign, each country landing on its own shop and currency.
App store linksiPhone visitors to the App Store, Android to Google Play, computers to the website.
Desktop and mobile pagesA long-form page for desktops, a short one for phones.

Pricing

Get Routing rules, and everything else.

One license unlocks every feature on this site. No link, click, domain or client limits. Your links run on your own Bunny.net account, which bills you for usage directly: under $1 a month for most setups.

Annual

$49.99/ year

Pay yearly. Upgrade to Lifetime any time and this year’s payment is credited.

  • Every feature, Routing rules included
  • 1 main site, unlimited client sites
  • Unlimited links, clicks, domains and clients
  • 1 year of updates and support
Buy Annual

Best value

Lifetime

$249.99once

Pay once, keep it for good. Costs less than five years of Annual.

  • Every feature, Routing rules included
  • 1 main site, unlimited client sites
  • Unlimited links, clicks, domains and clients
  • Lifetime updates, 3 years of support
Buy Lifetime
14-day money-back guaranteeSet up in about five minutesYour links, your Bunny account, your dataCompare plans →

Questions

Questions about Routing rules

How many rules can a link have?

As many as you need. Add a rule for each country, operating system or device you want to send elsewhere.

What if a visitor matches two rules?

The first kind wins, in this order: deep link rules (phones only), country, operating system, device, then A/B split.

Where do visitors go if no rule matches?

To the link’s main destination.

Do rules slow down the redirect?

No. The edge script checks them in the moment of the click, from the Bunny location nearest the visitor, with no WordPress involved.

Can I combine rules with an A/B test?

Yes. Country, OS and device rules apply first; visitors who match none of them are split between your A/B variants.

Can my clients add rules too?

Yes, in the client dashboard if you give them a login on your site, or on their own WordPress site with the Nahnu Links Client plugin. They only see and edit the domains you give them.

Works well with

Related features

All features →

Run it on your own edge.

Routing rules comes with every license, with every other feature. Unlimited links, clicks, domains and clients.

Save to list