Skip to content

What a Redirect Is and Why Pages Need Them

Last checked 15 November 2026

Change a page's address and the old one doesn't vanish from the world. It stays in bookmarks, in emails people sent last year, on other sites that linked to you, and in search results. Anyone who uses it lands on an error page unless you've told the server where the page went. That pointer is a redirect.

What you see when there's no redirect

Say your club had a page at /about-us and you rename it /who-we-are. A member clicks an old link from a newsletter. They see a plain "page not found" message. Nothing on that screen says the page still exists, only under a new name. Most people give up there.

The page itself is fine. The address is what changed. A visitor can't guess the new one, and neither can a search engine.

What a redirect does

A redirect is a short reply from your web server. Instead of sending the page, it says "not here, try this address". The reply carries a status code that starts with 3, plus a Location line holding the new address.1

Your browser follows that pointer straight away and loads the new page. The visitor usually doesn't notice. The only cost is one extra trip to the server, which adds a small delay.1

What happens when an old address is requestedVisitor opens the old addressServer replies with a new addressBrowser loads the new addressVisitor sees the page
The server answers with a pointer, and the browser follows it.

If you've ever typed a web address and watched it quietly change in the address bar, you've seen one at work. The page you asked for isn't the one that loaded.

Why people set them up

Google lists several situations where redirects help.2

  • You've moved your site to a new domain name.
  • People can reach your site through several different addresses, and you want to pick one as the main one.
  • You're merging two websites and want links to old pages to reach the right new ones.
  • You removed a page and want to send people to a different one.

MDN adds a plain reason to the list. Even if you fix every link on your own site, you can't control the links on other people's sites. Those links bring visitors, so you set up redirects from the old addresses to the new ones.1

Not every move needs one

If a page is gone and nothing replaces it, a redirect to somewhere unrelated can confuse people more than an honest error page. The mapping page covers how to decide where each old address should go.

Some website platforms already handle part of this. Google notes that a platform like Blogger or Shopify may have built-in redirect tools, and suggests searching for that platform's help articles.2

Other ways to redirect

A redirect from the server is the usual kind. There are two others. A page can carry an HTML tag that tells the browser to jump somewhere else, or a bit of JavaScript can do the same job. MDN says server redirects are the best way when you have control of the server, and that the other two are for cases where you don't.1

If you can only use the weaker kinds, the search engines page explains how Google treats them.

What to read next

The reply carries a code, and the code matters. Some mean "this move is for good" and some mean "this is only for now". MDN sorts them into permanent and temporary groups.1 The page on redirect codes explains the difference and when each fits.

Cited material

  1. Redirections in HTTP, MDN Web Docs
  2. Redirects and Google Search, Google Search Central