---
title: "What Is a URL Redirect? 301, 302 and 307 · Appy"
description: "A URL redirect is a server answer that sends the browser to another address. What 301, 302 and 307 mean, and which one fits a link whose destination changes."
source: "https://appy.to/glossary/url-redirect"
---

1.  [Home](https://appy.to/)
2.  [Glossary](https://appy.to/glossary)
3.  URL redirect

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.

Summarize with[ChatGPT](https://chatgpt.com/?q=Summarize%20this%20page%20and%20list%20its%20key%20points%3A%20https%3A%2F%2Fappy.to%2Fglossary%2Furl-redirect) [Claude](https://claude.ai/new?q=Summarize%20this%20page%20and%20list%20its%20key%20points%3A%20https%3A%2F%2Fappy.to%2Fglossary%2Furl-redirect) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20this%20page%20and%20list%20its%20key%20points%3A%20https%3A%2F%2Fappy.to%2Fglossary%2Furl-redirect)

## 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

App Store link

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

Google Play link

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

Campaign nameOptional

Only you see it, in your dashboard.

Add Huawei AppGallery or a website

Huawei AppGallery linkOptional

Huawei phones without Google Play go here.

Website for computersOptional

Where the code goes when someone opens it on a laptop.

Create my QR code

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

Live preview

appy.to/•••••

-   iPhoneAdd a link
-   AndroidAdd a link
-   HuaweiAdd a link
-   ComputerAdd a link

Your scannable code and short link are created when you sign up. It is free and takes about 30 seconds.

[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.](https://appy.to/blog/smart-link-clicks-app-store-website-bots)

## 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.

## Related terms

-   [Smart link](https://appy.to/glossary/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](https://appy.to/glossary/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](https://appy.to/glossary/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](https://appy.to/glossary)

## 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.

[Create a free link](https://appy.to/account/register)
