301 redirects: what they are and when to use them

In this article
- What is a 301 redirect and how does it work?
- When should I use a 301 redirect?
- What is the difference between a 301 and a 302?
- Does a 301 redirect make me lose Google rankings?
- Which redirect mistakes should I avoid?
- How do I set up a 301 redirect without coding?
- Checklist before you change your website
- Changing your website or domain?
A 301 redirect is a permanent forwarding notice that says: ‘this page has moved to this new address’. Anyone who visits the old address lands on the new one automatically, and Google learns about the move. If you rename a page, redesign your site or change your domain, a 301 redirect stops customers running into an error.
If you are about to move your website, this guide helps you know what to ask for and what to check. No jargon, just examples from salons, cafés and clinics.
What is a 301 redirect and how does it work?
Think of the sign you left on the door of your old shop: ‘We have moved to 12 High Street’. A 301 does the same job online. When someone types or clicks the old address, the server replies with a code, 301, which means ‘moved permanently’, and gives the new address. The browser takes them there without any effort on their part.
MDN's technical documentation describes it this way: the resource has been permanently moved to the address given. Google lists 301 (and 308) as permanent redirects, as opposed to the temporary ones: 302, 303 and 307.
When should I use a 301 redirect?
The rule is simple: use one when the old address is never coming back. Google puts it as using permanent redirects when you are sure they will not be reverted. Typical cases for a local business:
- You change the address of a page, for example from /prices-list to /pricing.
- You change domain, such as a salon moving from mysalon.com to mysalon.co.uk.
- You move from http to https, the secure version of your site.
- You merge two pages that covered the same thing, like ‘Menu’ and ‘Lunch menu’, into one.
- You retire a service and have a similar one to send customers to.
If a new page does not replace an old one, you do not need a redirect. It is only needed when an old address exists that people or Google already know.
What is the difference between a 301 and a 302?
A 302 is the temporary redirect. It suits a change that lasts a while and then goes back to normal. According to Google, with a permanent redirect the destination page is shown in search results, while with a temporary one the original page stays in the results.
| Type | Meaning | What Google shows | Local business example |
|---|---|---|---|
| 301 | Permanent | The new page | Your clinic moves /physio to /services/physio |
| 302 | Temporary | The old page | Your café sends /menu to the Christmas menu in December only |
If in doubt, ask yourself: will the old address be back in a few weeks? If yes, use a 302. If no, use a 301.
Does a 301 redirect make me lose Google rankings?
Done properly, it should not. Google's guide to moving a site recommends server-side permanent redirects and states that 301 and other permanent redirects do not cause a loss in PageRank, the value Google gives to links. MDN adds that search engines attribute links to the original address to the new one.
That said, it depends on how you set it up. The redirect must lead to an equivalent page, and the other parts of a move matter too. You will find a full list in our article on how to migrate a website without losing rankings. No redirect guarantees particular results, but a bad one can certainly cause problems.
Which redirect mistakes should I avoid?
- Sending everything to the homepage. Google warns that redirecting many old addresses to a single unrelated destination, such as the homepage, may be treated as a soft 404 error. Send each page to the one that most resembles it.
- Creating chains. If A leads to B and B leads to C, the journey is slower. Google advises redirecting straight to the final destination. It can follow up to 10 hops, but where there is no alternative it recommends no more than 3 and always fewer than 5.
- Removing them too soon. Google suggests keeping redirects for as long as possible, generally at least one year, and from the user's point of view it says to consider keeping them indefinitely.
- Redirecting pages that have no equivalent. If nothing similar exists, Google says the old address should return a 404 or 410.
- Using a 302 when you meant a 301. The move is final, but Google reads it as temporary.
An example: a dental clinic had 40 treatment pages and groups them into 8 on the new site. The right approach is to send each old page to its closest treatment, not all 40 to the front page.
How do I set up a 301 redirect without coding?
It depends on where your site lives. On many platforms it is a form with two boxes: the old address and the new one.
- On Wix: in your dashboard, go to SEO & GEO, then ‘Tools and settings’, then the URL Redirect Manager. It allows up to 5,000 redirects per site and only works with a custom domain. Wix creates an automatic 301 when you change a page's address, except for blog pages, which need doing by hand.
- On Shopify: go to Content, Menus and ‘View URL Redirects’. The old address must be broken, because if it still loads a valid page the redirect will not work. If you have many, you can import them from a CSV file.
- On WordPress and other systems: it is usually done with a plugin or from your hosting panel. If you are still choosing a platform, our Wix vs WordPress comparison can help.
Afterwards, test each old address in your browser. Shopify also points out that browsers store 301s in memory, so a redirect you have deleted may keep working on your computer for a while.
Checklist before you change your website
- List every old address that gets visits or links.
- Decide the closest new page for each one.
- Create the redirects and avoid chains.
- Test each one by hand.
- Update the website address on your Google listing, social profiles and printed cards. If your listing needs attention, our Google Business Profile management service can help.
- Keep the redirects for at least a year.
Changing your website or domain?
If you would like someone to take care of the redirect map, take a look at our website migration service. And if you would rather tell us about your situation before deciding anything, you can write to us through contact, with no obligation.
Frequently asked questions
- What is a 301 redirect?
- It is a permanent instruction from the server that sends visitors and Google from an old address to a new one. It is used when a page has moved for good.
- How long should I keep a 301 redirect?
- Google recommends keeping redirects for as long as possible, generally at least one year. From the user's point of view, it can make sense to keep them indefinitely.
- Should I use a 301 or a 302?
- It depends on whether the change is final. Use a 301 when the old address is not coming back and a 302 when the change is temporary, such as a seasonal menu.
- Can I redirect all my old pages to the homepage?
- It is not advisable. Google says redirecting many old addresses to one unrelated destination may be treated as a soft 404 error. It is better to send each old page to its closest equivalent.
Sources
- Google Search Central, «Redirects and Google Search». developers.google.com/search/docs/crawling-indexing/301-redirects
- Google Search Central, «How to move a site». developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes
- MDN Web Docs, «301 Moved Permanently». developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/301
- Shopify Help Center, «Creating and managing URL redirects». help.shopify.com/en/manual/online-store/menus-and-links/url-redirect
- Wix Help Center, «Setting Up a 301 Redirect for a Page on Your Site». support.wix.com/en/article/setting-up-301-redirects


