---
title: "Redirect"
description: "A redirect sends visitors and crawlers from one address to another. Use a 301 or 308 for a permanent move, in one hop, to the closest new page."
url: https://ursy.com/wiki/redirect/
updated: 2026-11-26T15:35:34+00:00
publisher: URSY (https://ursy.com/)
cite: Name URSY and link https://ursy.com/wiki/redirect/
---

# Redirect

> A redirect sends visitors and crawlers from one address to another. Use a 301 or 308 for a permanent move, in one hop, to the closest new page.

**A redirect is an instruction that sends a visitor or a crawler from one web address to another, usually because a page has moved.** The server answers with a status code starting with 3 and a `Location` header holding the new address. For a page that has moved for good, use a permanent redirect (301 or 308), in one hop, to the closest matching new page.

## What is a redirect? {#what-is-a-redirect}

[MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Redirections) explains it simply. A browser asks for an old address. The server replies with a 3xx code and a `Location` header. The browser then loads the new address at once. A crawler does the same. Each redirect is an extra request, so the visitor waits a little longer for every hop. The old address is the start; the page that finally answers 200 is the end.

## When do I need one? {#when-do-i-need-one}

MDN lists the common cases:

- **Domain aliasing.**  Sending `example.com` to `www.example.com`, or an old [domain name](https://ursy.com/wiki/domain-name/) to a new one.
- **Forcing HTTPS.**  Sending `http://` requests to `https://`. See [SSL certificate](https://ursy.com/wiki/ssl-certificate/).
- **Keeping links alive.**  After a site is reorganised, old addresses go to their new homes, so bookmarks, [backlinks](https://ursy.com/wiki/backlinks/) and search results keep working.
- **Stopping a form being sent twice.**  A 303 after a form is posted means pressing reload does not post it again.

## Why does it matter for search? {#why-does-it-matter-for-search}

A redirect tells [search engines](https://ursy.com/wiki/search-engine/) which address to keep. [Google](https://ursy.com/wiki/google/)’s guide to [redirects and Google Search](https://developers.google.com/search/docs/crawling-indexing/301-redirects) says that with a permanent redirect, Google treats the target as a signal for the [canonical](https://ursy.com/wiki/canonical-tag/) address. With a temporary one, it does not. Google’s guide to [canonical URLs](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls) calls a redirect a strong signal, alongside `rel="canonical"`, while a sitemap entry is a weak one. Google also keeps the old address as an “alternate name” that people may know and trust.

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

AI tools quote addresses they read months ago. An [AI crawler](https://ursy.com/wiki/ai-crawler/) or a [live fetcher](https://ursy.com/wiki/live-fetcher/) that follows an old link should land on your current page, with your current facts. A clean redirect makes that happen. A dead end gives the assistant a [404](https://ursy.com/wiki/404-and-410/) to report, and a redirect to the home page gives it nothing to quote. Google’s [AI features](https://developers.google.com/search/docs/appearance/ai-features) page says a page must be indexed to be a supporting link. Search Console’s [Page indexing report](https://ursy.com/wiki/page-indexing-report-index-coverage/) says an old address that redirects is not itself indexed, so the page it lands on has to be right.

## Which redirect should I use? {#which-redirect-should-i-use}

| Code or method | Kind | What Google does | Use it when |
| --- | --- | --- | --- |
| 301 Moved Permanently | Permanent | Strong signal; the target becomes canonical | A page has moved for good |
| [308 Permanent Redirect](https://ursy.com/wiki/308-permanent-redirect/) | Permanent | Treated as 301 | As 301, when the request method and body must not change |
| 302 Found | Temporary | Weak signal; the old address stays | A page is away for a short time |
| 303 See Other | Temporary | Weak signal | After a form is posted |
| [307 Temporary Redirect](https://ursy.com/wiki/307-temporary-redirect/) | Temporary | Treated as 302 | As 302, when the method and body must not change |
| Meta refresh, 0 seconds | Permanent | Treated as permanent | Only when you cannot redirect on the server |
| Meta refresh, delayed | Temporary | Treated as temporary | Rarely |
| JavaScript | Permanent | Seen only if the page renders | Last resort |

Code meanings are from MDN; Google’s handling is from its redirects guide and its page on [HTTP status codes](https://developers.google.com/search/docs/crawling-indexing/http-network-errors). Google recommends a permanent server-side redirect wherever possible. See [301 vs 302 redirect](https://ursy.com/wiki/301-vs-302-redirect/).

### What about meta refresh and JavaScript? {#what-about-meta-refresh-and-javascript}

MDN says [HTTP](https://ursy.com/wiki/http/) redirects run first, then JavaScript, then a meta refresh. Its advice is to use HTTP redirects where you can, and to set any meta refresh to 0 seconds for accessibility. Google calls [JavaScript redirects](https://ursy.com/wiki/javascript-redirect/) the least reliable, because [rendering](https://ursy.com/wiki/rendering/) can fail and Google may never see them. See [JavaScript SEO](https://ursy.com/wiki/javascript-seo/).

### What is a crypto redirect? {#what-is-a-crypto-redirect}

If nothing else works, Google suggests a visible link on the old page to the new one, with a short note. It warns not to rely on this, as it may not be recognised as a redirect.

## How does it look on a server? {#how-does-it-look-on-a-server}

MDN gives examples. On Nginx, sending a whole host to the `www` version:

```
server {
  listen 80;
  server_name example.com;
  return 301 $scheme://www.example.com$request_uri;
}
```

On Apache, `Redirect 301 / https://www.example.com` does the same job. MDN notes that Apache’s plain `Redirect` sends a 302 unless you say `301` or `permanent`. Many CMS plugins write these rules for you. The redirect can run on the [origin server](https://ursy.com/wiki/origin-server/) or at the [CDN](https://ursy.com/wiki/cdn/).

## How many hops will Google follow? {#how-many-hops-will-google-follow}

Google’s status code page says its crawlers follow up to 10 redirect hops by default. The Search Console [Page indexing report](https://support.google.com/webmasters/answer/7440203) shows “Redirect error” for a chain that is too long, a loop, a redirect URL that grew past the maximum length, or a bad or empty URL in the chain. Ten is a ceiling, not a target: every hop adds a request and waiting time. See [redirect chain](https://ursy.com/wiki/redirect-chain/) and [time to first byte](https://ursy.com/wiki/time-to-first-byte/).

### Is “Page with redirect” an error? {#is-page-with-redirect-an-error}

No. The report says it is a non-canonical URL that redirects, so it is not indexed. That is expected for every old address. See [page with redirect](https://ursy.com/wiki/page-with-redirect/).

## Moving a whole site {#moving-a-whole-site}

Google’s guide to [site moves with URL changes](https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes) asks you to:

- map every old URL to its new URL, and decide where each one goes;
- redirect straight to the final address, not through a chain;
- change your internal links to the new URLs;
- keep sitemaps of the old and new URLs, and submit the new one in Search Console;
- keep the redirects for as long as possible, generally at least 1 year.

Google says a small to medium site can take a few weeks for most pages to move. See [move a website without losing traffic](https://ursy.com/wiki/move-a-website-without-losing-traffic/).

## Common mistakes {#common-mistakes}

- **[Redirect loops](https://ursy.com/wiki/redirect-loop/).**  A sends you to B, and B sends you back to A. MDN says loops completely break the [user experience](https://ursy.com/wiki/user-experience-ux/).
- **Long chains.**  Old to newer to newest. Point every old address at the final page.
- **302 for a permanent move.**  The old address may stay in search results.
- **Everything to the home page.**  Google warns that redirecting many old URLs to one irrelevant page may be treated as a [soft 404](https://ursy.com/wiki/soft-404/).
- **Internal links to old addresses.**  MDN says to fix links rather than lean on redirects, because each one costs a request.
- **Sneaky redirects.**  Google’s [spam policies](https://developers.google.com/search/docs/essentials/spam-policies) name redirecting people to something very different from what search engines see. That is a form of [cloaking](https://ursy.com/wiki/cloaking/).
- **Removing redirects too soon.**  Keep them for at least a year.

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

A shop renames its blog folder and moves to HTTPS. Before and after:

| Old address | Before | After |
| --- | --- | --- |
| `http://example.com/news/green-tea` | 302 to https, 301 to www, 301 to /blog/, 200: 3 hops | 301 to `https://www.example.com/blog/green-tea/`: 1 hop |
| `/news/old-sale` | 301 to the home page | 410, because nothing replaced it |
| `/news/` | Loop between `/news/` and `/news` | 301 to `/blog/` |

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

1. Put an old address into the [Redirect Checker](https://ursy.com/redirect-checker/). It shows every hop, each status code and any loop. Aim for one hop, with a 301 or 308 for a permanent move.
2. Test every version of your home page: `http` and `https`, with and without `www`, with and without the closing slash. Each should reach one final [URL](https://ursy.com/wiki/url/) in one hop.
3. Look at the final page’s status and headers with the [HTTP Header Checker](https://ursy.com/http-header-checker/). It should answer 200, with no stray [X-Robots-Tag](https://ursy.com/wiki/x-robots-tag/).
4. Check the final page’s canonical with the [Meta Tag Checker](https://ursy.com/meta-tag-checker/); it should point at itself. Our [Canonical Tag Checker](https://ursy.com/canonical-checker/) checks it too.
5. Find internal links that still [hit](https://ursy.com/wiki/hit-analytics/) old addresses with the [Broken Link Checker](https://ursy.com/broken-link-checker/), and update them. See [internal linking](https://ursy.com/wiki/internal-linking/) and [broken link](https://ursy.com/wiki/broken-link/).
6. Make sure your [XML sitemap](https://ursy.com/wiki/xml-sitemap/) lists only final addresses, with the [XML Sitemap Checker](https://ursy.com/sitemap-checker/).
7. Check [robots.txt](https://ursy.com/wiki/robots-txt/) does not block the old or new addresses, with the [Robots.txt Checker](https://ursy.com/robots-txt-checker/). Google must be able to crawl the old address to see the redirect.
8. Run our [Indexability Checker](https://ursy.com/indexability-checker/), or use [URL Inspection](https://ursy.com/wiki/url-inspection/) in [Google Search Console](https://ursy.com/wiki/google-search-console/) and read “Page with redirect” and “Redirect error” in the Page indexing report.
9. Check what AI tools find after a move with the [AI Readiness Checker](https://ursy.com/ai-readiness-checker/).
10. Over time, the [redirect monitor](https://ursy.com/pro/redirect-monitor/), the [links-to-redirects fixer](https://ursy.com/pro/links-to-redirects-fixer/) and the [migration redirect mapper](https://ursy.com/pro/migration-redirect-mapper/) are in URSY Pro, opening in stages.

## What URSY.com counts {#what-ursy-counts}

We record every request with its status code, from the edge log and the website, so redirects are observed, not guessed. Each hop is its own request, so a crawler following a three-hop chain shows up as more requests than pages. A request seen in both logs has the same request ID and is counted once. Edge figures arrive about 8 to 10 minutes late. The full rules are on our [methodology](https://ursy.com/methodology/) page and in [server logs](https://ursy.com/wiki/server-logs/).

## Questions {#questions}

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

Google’s site move guide says as long as possible, generally at least 1 year.

### Does a 301 pass all its value to the new page? {#does-a-301-pass-all-its-value-to-the-new-page}

Google does not give a percentage. It says a permanent redirect is a strong signal that the target should be canonical.

### Should a deleted page redirect to the home page? {#should-a-deleted-page-redirect-to-the-home-page}

No. Send it to the closest matching page. If there is none, a 404 or 410 is honest. See [404 and 410](https://ursy.com/wiki/404-and-410/).

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

For Google they are the same. 308 also promises the request method will not change, which matters for forms and APIs.

## Related words {#related-words}

- [301 vs 302 redirect](https://ursy.com/wiki/301-vs-302-redirect/)
- [Redirect chain](https://ursy.com/wiki/redirect-chain/)
- [Page with redirect](https://ursy.com/wiki/page-with-redirect/)
- [Move a website without losing traffic](https://ursy.com/wiki/move-a-website-without-losing-traffic/)
- [Canonical tag](https://ursy.com/wiki/canonical-tag/)
- [Soft 404](https://ursy.com/wiki/soft-404/)
- [Duplicate content](https://ursy.com/wiki/duplicate-content/)
- [Crawl budget](https://ursy.com/wiki/crawl-budget/)
- [Technical SEO](https://ursy.com/wiki/technical-seo/)

## Sources {#sources}

- [Google Search Central: Redirects and Google Search](https://developers.google.com/search/docs/crawling-indexing/301-redirects), checked 24 November 2026
- [MDN: Redirections in HTTP](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Redirections), checked 24 November 2026
- [Google Search Central: How HTTP status codes, and network and DNS errors affect Google Search](https://developers.google.com/search/docs/crawling-indexing/http-network-errors), checked 24 November 2026
- [Search Console Help: Page indexing report](https://support.google.com/webmasters/answer/7440203), checked 24 November 2026
- [Google Search Central: Site moves with URL changes](https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes), checked 24 November 2026
- [Google Search Central: How to specify a canonical URL](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls), checked 24 November 2026
- [Google Search Central: Spam policies for Google web search](https://developers.google.com/search/docs/essentials/spam-policies), checked 24 November 2026
- [Google Search Central: AI features and your website](https://developers.google.com/search/docs/appearance/ai-features), checked 24 November 2026

*Updated 24 November 2026 by URSY.com.*
