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? #
MDN 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? #
MDN lists the common cases:
- Domain aliasing. Sending
example.comtowww.example.com, or an old domain name to a new one. - Forcing HTTPS. Sending
http://requests tohttps://. See SSL certificate. - Keeping links alive. After a site is reorganised, old addresses go to their new homes, so bookmarks, 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? #
A redirect tells search engines which address to keep. Google’s guide to redirects and Google Search says that with a permanent redirect, Google treats the target as a signal for the canonical address. With a temporary one, it does not. Google’s guide to canonical 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? #
AI tools quote addresses they read months ago. An AI crawler or a 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 to report, and a redirect to the home page gives it nothing to quote. Google’s AI features page says a page must be indexed to be a supporting link. Search Console’s Page indexing report 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? #
| 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 | 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 | 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. Google recommends a permanent server-side redirect wherever possible. See 301 vs 302 redirect.
What about meta refresh and JavaScript? #
MDN says 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 the least reliable, because rendering can fail and Google may never see them. See JavaScript SEO.
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? #
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 or at the CDN.
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 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 and time to first byte.
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.
Moving a whole site #
Google’s guide to site moves 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.
Common mistakes #
- Redirect loops. A sends you to B, and B sends you back to A. MDN says loops completely break the user experience.
- 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.
- 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 name redirecting people to something very different from what search engines see. That is a form of cloaking.
- Removing redirects too soon. Keep them for at least a year.
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 #
- Put an old address into the 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.
- Test every version of your home page:
httpandhttps, with and withoutwww, with and without the closing slash. Each should reach one final URL in one hop. - Look at the final page’s status and headers with the HTTP Header Checker. It should answer 200, with no stray X-Robots-Tag.
- Check the final page’s canonical with the Meta Tag Checker; it should point at itself. Our Canonical Tag Checker checks it too.
- Find internal links that still hit old addresses with the Broken Link Checker, and update them. See internal linking and broken link.
- Make sure your XML sitemap lists only final addresses, with the XML Sitemap Checker.
- Check robots.txt does not block the old or new addresses, with the Robots.txt Checker. Google must be able to crawl the old address to see the redirect.
- Run our Indexability Checker, or use URL Inspection in Google Search Console and read “Page with redirect” and “Redirect error” in the Page indexing report.
- Check what AI tools find after a move with the AI Readiness Checker.
- Over time, the redirect monitor, the links-to-redirects fixer and the migration redirect mapper are in URSY Pro, opening in stages.
What URSY.com 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 page and in server logs.
Questions #
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? #
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? #
No. Send it to the closest matching page. If there is none, a 404 or 410 is honest. See 404 and 410.
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 #
- 301 vs 302 redirect
- Redirect chain
- Page with redirect
- Move a website without losing traffic
- Canonical tag
- Soft 404
- Duplicate content
- Crawl budget
- Technical SEO
Sources #
- Google Search Central: Redirects and Google Search, checked 24 November 2026
- MDN: Redirections in HTTP, checked 24 November 2026
- Google Search Central: How HTTP status codes, and network and DNS errors affect Google Search, checked 24 November 2026
- Search Console Help: Page indexing report, checked 24 November 2026
- Google Search Central: Site moves with URL changes, checked 24 November 2026
- Google Search Central: How to specify a canonical URL, checked 24 November 2026
- Google Search Central: Spam policies for Google web search, checked 24 November 2026
- Google Search Central: AI features and your website, checked 24 November 2026
Updated 24 November 2026 by URSY.com.
Cite this page: Redirect. URSY. Updated 26 November 2026. https://ursy.com/wiki/redirect/ · Section links
Tools for this
- LiveRedirect Checkerevery hop, 301 / 302, loopsRun the check →
- LiveLink Checkerevery link on a page: broken, redirected, internal, external, as CSVRun the check →
- LiveAI Readiness Checkeris your site ready for ChatGPT, Gemini, Claude? Score + fixesRun the check →
- LiveAI Bot Checkerwhich AI bots your robots.txt lets inRun the check →
- LiveRobots.txt Checker + Generatortest any address against your rules, or write new onesRun the check →
- LiveSchema Markup CheckerRun the check →
- ProRedirect monitorChains, loops, 302sIn URSY Pro →
- ProMigration redirect mapperWhole-site old to new 301 mapIn URSY Pro →
- ProLinks-to-redirects fixerInternal links pointing at redirects, fixed automaticallyIn URSY Pro →