Appy

Smart links and web-to-app

What is a URL redirect?

Short answer

A URL redirect is a server response that tells the browser to go to a different address. The server answers with a 3xx status code and a Location header holding the new address, and the browser requests it automatically. Short links, smart links and dynamic QR codes are all built on this step.

The status codes

301 Moved Permanently says the old address should no longer be used. Search engines credit the new address, and browsers may store the answer and skip the old address next time.

302 Found says the move is temporary, and the client should keep using the original address for future requests. 307 Temporary Redirect means the same, with one guarantee added: the request method and body are not changed. With 301 and 302, a browser may turn a POST into a GET. 308 Permanent Redirect is the permanent counterpart of 307.

For a plain link opened in a browser, which is a GET request, 302 and 307 behave alike.

What a redirect-based link does

A short link has no content. Its whole job is to answer with a redirect. A smart link does the same after looking at the request: it reads the user agent and the country, picks the destination and puts it in the Location header.

A link whose destination can change, or differs per device, should use a temporary redirect. A permanent one may be stored by the browser. The next tap would then skip the link service, miss any new destination and go uncounted.

Where redirects cause trouble

Every redirect is an extra request before the page loads. One is hardly noticed. A chain of them, a short link pointing at a tracking link pointing at another short link, adds a round trip per hop and one more service that can fail.

Query parameters are not carried along by themselves. The new address contains only what the server puts in the Location header, which is why parameter forwarding has to be a deliberate feature.

A page can also redirect with an HTML meta refresh or with JavaScript. Those only work once the page has loaded and run, so automated fetchers, such as the ones that build a link preview, may not follow them.

ExampleHeader in a 302 Found response
Location: https://apps.apple.com/app/id123456789

Try it here

Make one link for every store

Paste your App Store and Google Play links, and AppGallery if you use it. iPhones go to the App Store, Android phones to Google Play and computers to your website.

Make your one link

Copy it from your App Store page or from App Store Connect.

The address of your Play Store listing, the one with ?id= in it.

Optional

Only you see it, in your dashboard.

Free plan. No credit card.

What happens next

  1. 01Sign up free with Google or email
  2. 02We create your link and QR code
  3. 03Add your logo, download and print
Read moreApp, Store or Website: Where Your Link’s Clicks Really GoHow a smart link decides where each visitor goes, and why previews in chat apps are not clicks.

Frequently asked questions

What is the difference between a 301 and a 302 redirect?

A 301 is permanent: use the new address from now on, and search engines credit it. A 302 is temporary: keep using the original address, because the destination may change. Links that are edited later or route by device belong in the second group.

When should I use 307 instead of 302?

When the request is not a simple GET. A 307 guarantees that the method and body are kept, so a POST stays a POST. For ordinary links that people tap, both give the same result.

Do redirects slow a link down?

Each redirect adds one request and response before the destination starts loading. A single fast redirect is hard to notice. Chains are what hurt, so point a link at the final address, not at another redirect.

  • Smart link

    A smart link is one link, often with a matching QR code, that checks the device tapping it and sends each person to the right place: iPhones to the App Store, Android phones to Google Play or another store, desktops to your website, and straight into the app when it’s already installed.

  • Short link

    A short link is a compact web address that redirects to a longer one. It is made of a domain and a short path called the slug. The link service stores the long address, sends each visitor on to it, and counts the visit on the way, so the destination can change while the short link stays the same.

  • User agent

    A user agent is the text a browser sends in the User-Agent header of every request, naming the browser, its version and the operating system. Servers use it to tell an iPhone from an Android phone or a desktop. Chrome now sends a reduced version, and the missing detail moved to User-Agent Client Hints.

All glossary terms

One link for every phone

Create a free smart link and QR code that sends iPhones to the App Store, Android phones to Google Play and desktops to your website.