---
title: "Redirect types"
description: "Every redirect type side by side: 301, 302, 303, 307, 308, meta refresh and JavaScript, how Google treats each, and which one to pick."
url: https://ursy.com/wiki/redirect-types/
updated: 2026-11-25T01:48:08+00:00
publisher: URSY (https://ursy.com/)
cite: Name URSY and link https://ursy.com/wiki/redirect-types/
---

# Redirect types

> Every redirect type side by side: 301, 302, 303, 307, 308, meta refresh and JavaScript, how Google treats each, and which one to pick.

**Redirect types are the different ways a web address can send visitors and crawlers on to another address: server-side [HTTP](https://ursy.com/wiki/http/) codes (301, 302, 303, 307 and 308), meta refresh tags, JavaScript, and a plain “this page has moved” link.** Each type tells browsers and [search engines](https://ursy.com/wiki/search-engine/) something different about whether the move is for good, so picking the right one decides which address [Google](https://ursy.com/wiki/google/) keeps in its results.

## What are the redirect types? {#what-are-the-redirect-types}

Our page on the [redirect](https://ursy.com/wiki/redirect/) explains what a redirect is. This page is the side-by-side map of every kind, so you can choose one. They fall into 3 families:

- **Server-side redirects.**  The server answers with a 3xx [HTTP status code](https://ursy.com/wiki/http-status-code/) and a Location header naming the new address. No page is sent at all.
- **Meta refresh.**  A tag in the page’s [HTML head](https://ursy.com/wiki/html-head/) that tells the browser to load another address, either at once or after a delay.
- **Client-side scripts.**  A [JavaScript redirect](https://ursy.com/wiki/javascript-redirect/) that changes the address after the page starts running.

Google also describes a fourth, weak option it calls a crypto redirect: a link on the old page that says the content has moved.

## The full table {#the-full-table}

| Type | Permanent or temporary | What happens to POST forms | How Google treats it |
| --- | --- | --- | --- |
| 301 Moved Permanently | Permanent | GET stays GET; others may change to GET | Strong sign the new address should be canonical |
| 308 Permanent Redirect | Permanent | Method and body kept | Same as 301 |
| 302 Found | Temporary | GET stays GET; others may change to GET | Followed, but not used as a canonical signal |
| 303 See Other | Temporary | Others changed to GET, body lost | Same as 302 |
| 307 Temporary Redirect | Temporary | Method and body kept | Same as 302 |
| Meta refresh, 0 seconds | Permanent | Not relevant | Read as a permanent redirect |
| Meta refresh, delayed | Temporary | Not relevant | Read as a temporary redirect |
| JavaScript | Depends on use | Not relevant | Only seen if [rendering](https://ursy.com/wiki/rendering/) works; a last resort |
| Crypto (a “moved” link) | Not a real redirect | Not relevant | Not a reliable signal |

The method column comes from MDN’s [guide to HTTP redirections](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Redirections). The Google column comes from Google’s page on [redirects and Google Search](https://developers.google.com/search/docs/crawling-indexing/301-redirects). For the 2 newer codes, see our pages on the [307](https://ursy.com/wiki/307-temporary-redirect/) and the [308](https://ursy.com/wiki/308-permanent-redirect/).

## Why does the type matter for search? {#why-does-the-type-matter-for-search}

Google keeps both the old and the new address on file. Its redirects page says which one becomes canonical depends on signals such as whether the redirect was permanent or temporary. With a 301 or 308, Google’s indexing treats the redirect as a canonical signal and the new address normally replaces the old one in results. With a 302, 303 or 307, [Googlebot](https://ursy.com/wiki/googlebot/) still follows the hop, but the old address may stay in results.

Google’s page on [canonical URLs](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls) ranks redirects as a strong signal, level with the [canonical tag](https://ursy.com/wiki/canonical-tag/), and above a sitemap entry. So a wrong type can keep a dead address showing for months, or move a page you only meant to park for a weekend. Our [301 vs 302](https://ursy.com/wiki/301-vs-302-redirect/) page goes deeper on that one choice.

## Why does it matter for AI answers? {#why-does-it-matter-for-ai-answers}

[AI assistants](https://ursy.com/wiki/ai-assistant/) cite addresses they found in an index or fetched live. A clean server-side redirect means an old cited link still lands on the right page in one hop. A JavaScript redirect is riskier: Google warns it might never see one if rendering fails, and an [AI crawler](https://ursy.com/wiki/ai-crawler/) that does not run scripts may read the old page instead. That is why [JavaScript crawling](https://ursy.com/wiki/javascript-crawling/) limits matter here.

## Which order do they run in? {#which-order-do-they-run-in}

MDN sets out the order a browser follows when more than one is present:

1. HTTP redirects always run first, since no page is sent.
2. JavaScript redirects run next, because a meta refresh waits until the page has fully loaded.
3. A meta refresh runs if nothing above has already moved the visitor.
4. A script that redirects later, such as on a button click, runs last.

MDN recommends HTTP redirects wherever possible.

## How do you choose? {#how-do-you-choose}

- **Page moved for good, site rebuilt, domain changed:**  301. Use 308 if forms or API calls send POST data to the old address. Google says to use these when you are sure the move will not be undone.
- **Short break, test or sold-out page you will bring back:**  302 or 307.
- **After a form or checkout step:**  303, so a refresh does not send the form twice.
- **No server access, static page only:**  a 0-second meta refresh.
- **No other option at all:**  JavaScript, as Google advises only then.

## Common mistakes {#common-mistakes}

- **Using 302 for a permanent move**  because a plugin or server picks it by default.
- **Stacking hops**  such as HTTP to HTTPS, then [www to non-www](https://ursy.com/wiki/www-vs-non-www/), then a new path. That makes a [redirect chain](https://ursy.com/wiki/redirect-chain/); send each old address straight to the final one. Google’s [site move guide](https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes) says its crawlers follow up to 10 hops but asks you to point straight at the final address, and to keep any chain to 3 or fewer where you can.
- **Two rules that point at each other** , which makes a [redirect loop](https://ursy.com/wiki/redirect-loop/).
- **Sending every old page to the home page.**  If there is no close match, a [404 or 410](https://ursy.com/wiki/404-and-410/) is more honest than dropping visitors somewhere unrelated to the link they followed, which can look like a [soft 404](https://ursy.com/wiki/soft-404/).
- **Leaving menus and links on the old address.**  Fix [internal links to redirected URLs](https://ursy.com/wiki/internal-links-to-redirected-urls/) so visitors and crawlers skip the hop.
- **Removing redirects too soon**  after a [site move](https://ursy.com/wiki/move-a-website-without-losing-traffic/); old links and bookmarks keep arriving for years.

## A worked example {#a-worked-example}

A bakery renames /cakes/birthday to /celebration-cakes/ and runs a 2-week Christmas page at /christmas that should briefly show the advent range instead. It sets a 301 from the old cake address to the new one, a 302 from /christmas to /advent for the 2 weeks, and a 303 after its order form so a refresh does not repeat an order. It writes the rules in its [.htaccess file](https://ursy.com/wiki/htaccess-file/), then checks each with a redirect tool and updates its menus to the new addresses.

## How to check it {#how-to-check-it}

1. Run an address through our [redirect checker](https://ursy.com/redirect-checker/) to see every hop and its code. Our [redirect checker guide](https://ursy.com/guides/how-to-use-redirect-checker/) shows what each line means.
2. Read the raw [HTTP headers](https://ursy.com/wiki/http-headers/) and Location value with our [HTTP header checker](https://ursy.com/http-header-checker/).
3. Confirm the final page names itself as canonical with our [canonical checker](https://ursy.com/canonical-checker/).
4. Find links still pointing at old addresses with our [broken link checker](https://ursy.com/broken-link-checker/).
5. Write rules with the [redirect generator](https://ursy.com/webmaster-tools/redirect-generator/), and plan big moves with the [redirect mapper](https://ursy.com/webmaster-tools/redirect-mapper/).
6. In [Search Console](https://ursy.com/wiki/google-search-console/), the [page with redirect](https://ursy.com/wiki/page-with-redirect/) status lists addresses Google saw redirecting.

In URSY Pro, the [redirect monitor](https://ursy.com/pro/redirect-monitor/) (Pro) and [migration redirect mapper](https://ursy.com/pro/migration-redirect-mapper/) (Pro) are being built to watch these over time.

## Questions {#questions}

### Is 308 better than 301? {#is-308-better-than-301}

For search, Google treats them the same. 308 keeps the request method, so it suits forms and APIs.

### Is 304 a redirect? {#is-304-a-redirect}

MDN lists [304 Not Modified](https://ursy.com/wiki/304-not-modified/) as a special case: it points the browser to its own cached copy, not to a new address.

### How long should I keep a permanent redirect? {#how-long-should-i-keep-a-permanent-redirect}

Google’s site move guide says to leave redirects running for a long time, normally a year or more, and to consider keeping them indefinitely for users.

## Related words {#related-words}

- [Redirect](https://ursy.com/wiki/redirect/)
- [301 vs 302 redirect](https://ursy.com/wiki/301-vs-302-redirect/)
- [JavaScript redirect](https://ursy.com/wiki/javascript-redirect/)
- [Redirect chain](https://ursy.com/wiki/redirect-chain/)
- [HTTP status code](https://ursy.com/wiki/http-status-code/)

## Sources {#sources}

- [Google Search Central: Redirects and Google Search](https://developers.google.com/search/docs/crawling-indexing/301-redirects), checked 25 November 2026
- [Google Search Central: Site moves with URL changes](https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes), checked 25 November 2026
- [MDN Web Docs: Redirections in HTTP](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Redirections), checked 25 November 2026
- [Google Search Central: How to specify a canonical URL](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls), checked 25 November 2026

*Updated 25 November 2026 by URSY.*
