Armstrong Websites

Articles · Website upkeep

What is a redirect and when do you need one?

By Armstrong Websites. Published . Updated .

A redirect is an instruction that sends anyone who asks for one web address to a different address. You need one each time you rename, move, or delete a page, and when you change your domain name. Without it, visitors who use the old address get an error page, and Google loses track of where the page went.

How a redirect works

Say your site has a page at /services/. You rename it, and the new address is /plumbing-services/. The old address still exists in many places: Google results, a link from a supplier’s site, an old Facebook post, and a customer’s bookmarks.

A redirect tells your website: “When someone asks for /services/, send them to /plumbing-services/.” The visitor’s browser makes the switch by itself. It happens fast, and most people never notice.

You set up each redirect once. It keeps working until you remove it.

The two types you will see

Most platforms offer two kinds. They are named for the status code the website sends.

A 301 redirect is permanent. It says the page has moved for good. Google treats the new address as the replacement for the old one and, over time, shows the new address in search results. Use a 301 for almost every case in this article.

A 302 redirect is temporary. It says the page is somewhere else for now and will come back. Use it for short-term cases, such as sending a product page to a “back soon” notice while you restock.

If a tool asks which type you want and the move is permanent, pick 301.

When you need a redirect

You rename a page. On most platforms, changing a page’s address (often called the URL or the slug) creates a new address and leaves the old one empty. Some platforms add a redirect for you. Many do not. Test the old address after any rename.

You delete a page. If you stop offering a service, send that page’s address to the closest match, such as your main services page. If you remove last season’s event page, send it to the events page.

You merge pages. Two thin pages on fence repair and fence building may work better as one page. Redirect both old addresses to the new one.

You redesign the site or switch platforms. A move from one platform to another often changes the address of every page. This is the case that does the most damage when redirects are skipped. How to redesign a website without losing Google rankings covers the full process.

You change your domain name. If the business takes a new name, or you move from a .com to a .ca, redirect every page on the old domain to the matching page on the new one. Keep the old domain registered so the redirects keep working.

You own more than one domain. Some owners register a second spelling of their name, or both the .ca and the .com. Point the extra domains at the main one with a redirect, so every visitor ends up on the same site.

When you do not need one

You do not need a redirect when you only change the words, photos, or title on a page. The address stays the same.

You do not need one for a page that was never public, or for a draft.

You may not need one for an old page that had no visitors and no links pointing to it. If you are unsure, add the redirect. It does no harm.

Why redirects matter to Google

Google stores what it knows about a page under that page’s address. That includes the links other sites have made to it. When the address returns an error, Google drops the page from results over time, and those links stop helping you.

A 301 redirect tells Google that the new address has taken the old one’s place. Google can then carry what it knew over to the new page. This works best when the new page covers the same topic as the old one.

How to set one up

The steps depend on what runs your site. Menus change, so treat these as general directions and check your platform’s help pages.

Squarespace. Look in the settings for the developer or advanced tools, and find the panel for URL redirects (older help pages call it URL mappings). You type one line for each redirect: the old address, the new address, and the type.

WordPress. WordPress does not include a general redirect screen. Most owners add a redirect plugin, or use the redirect feature in an SEO plugin they already have. You enter the old address and the new one in a form.

Shopify. Shopify has a URL redirects screen in the admin, under the online store settings. When you change a product or page address, Shopify also offers a checkbox to create the redirect for you.

Wix. Look for the redirect manager in the SEO tools in your dashboard.

A second domain. Many domain registrars offer domain forwarding in the domain’s settings. Enter the main address there and choose the permanent option.

A custom-built site. Ask the person who built it. They can add redirects in the site’s settings or hosting.

Mistakes to avoid

Sending everything to the homepage. A visitor who clicked a link about hot tub repair wants the hot tub repair page. Match each old address to the closest page. Use the homepage only when nothing closer exists.

Chains. Page A redirects to page B, which redirects to page C. Each step adds a delay. Point A straight at C.

Loops. Page A redirects to B, and B redirects back to A. The browser gives up and shows an error. Check your list for pairs that point at each other.

Using temporary for a permanent move. If the page will not come back, use a 301.

Removing redirects too soon. Old links last for years. As plain guidance, leave redirects in place for as long as you own the domain.

Letting an old domain expire. When the domain lapses, every redirect on it stops. How to renew a domain name and avoid losing it explains how to keep it active.

Keep a list

Start a simple spreadsheet with three columns: the old address, the new address, and the date you added the redirect. Update it each time you make one.

The list helps you spot chains and loops. It also saves a great deal of work if you move to a new platform, because redirects often do not move with the site. You or your designer will have to enter them again.

Test each redirect

Open a private or incognito window in your browser. Type the old address in full and press Enter. The new page should load, and the address bar should show the new address.

Test on a phone too. Then look at Google Search Console over the next few weeks. Its indexing report lists addresses that return “Not found (404).” If an old address shows up there, its redirect is missing or wrong. How to check your website for broken links explains how to read that report.

If you have a redesign or a domain change coming and want the redirects planned first, start with a note through the contact page.

Ready when you are

Book a coffee