How to set up a 301 redirect on any platform, and plan one for a redesign
What a 301 redirect is, 301 vs 302 vs 308, step-by-step on WordPress, Shopify, Squarespace and Wix, and how to build a redirect map for a redesign.
The short answer
A 301 redirect is a permanent, server-side instruction that sends visitors and Google from an old address to a new one. Use 301 (or its equivalent 308) when a page has moved for good, and 302 (or 307) only when the move is temporary. Set it up in your host, CMS or platform redirect tool, then test every old URL.
What a 301 redirect does
When someone requests an old URL, the server replies with a status code and the new address, and the browser goes there. Google's documentation says permanent redirects tell it that the new URL should be the canonical one, so that is the address shown in search results. Temporary redirects keep the original URL as the one shown.
That is why redirects matter for anyone who has changed a domain, renamed pages or rebuilt a site. Without them, old links, bookmarks and search results lead to error pages, and the ranking history attached to those URLs is lost.
301 vs 302 vs 308
| Code | Type | Use it when |
|---|---|---|
| 301 | Permanent | A page, folder or whole domain has moved for good |
| 308 | Permanent | Same intent as 301; Google treats both as permanent |
| 302 | Temporary | A short-term change, such as a seasonal page or maintenance |
| 307 | Temporary | Same intent as 302; Google treats both as temporary |
Google also lists 303 as temporary. For everyday small-business use, remember the rule: if the old address is never coming back, use 301. Google advises using a permanent redirect only when you are sure it will not be reversed.
See what Website Care & Maintenance would cost for your business
Answer a few questions about your project and budget and get a personalised plan, compared with typical market prices.
Book a free 15-min callAbout 3 minutes · no obligation · fixed price confirmed in writingWhich redirect method to use
Google rates server-side redirects as the most reliably interpreted method. They are set in server configuration (an .htaccess file on Apache, or NGINX config) or in server-side code. A meta refresh with a zero-second delay is treated as permanent and is acceptable when you cannot use the server. JavaScript redirects are a last resort, because Google may fail to render the script and never see the redirect. Google also suggests checking whether your hosting platform already provides built-in redirect tools before writing your own.
How to set up a redirect, by platform
WordPress
You have three routes: your host's redirect tool in its control panel, a redirect plugin, or a rule in your server configuration. For a handful of pages, the host tool or a plugin is the least risky. For a large number, a rule or a plugin that supports bulk import is better. Take a backup first, as a faulty rule in .htaccess can take the whole site down.
Shopify
Go to Content, then Menus, then View URL Redirects, and add the old path and the new one. You can also import a CSV. Shopify says a redirect only works for URLs that are broken, and some paths such as /cart and /collections/all cannot be redirected. Standard stores can have up to 100,000 redirects. Remember that browsers and search engines cache 301s, so removing one may not take effect straight away.
Squarespace
Use URL mappings in the site settings. Each line takes the form /old-url -> /new-url 301. Squarespace says the old page must be deleted or disabled first, rules run from top to bottom, and the field holds roughly 2,500 lines (400 KB). A [name] variable can carry a whole blog or product collection to a new location in a single line.
Wix
Open SEO & GEO in the dashboard, then Tools and settings, then the URL Redirect Manager, and create a single redirect. Wix redirects only work with a custom domain, it does not create blog redirects for you, you cannot redirect the home page with this tool, and each site is limited to 5,000 redirects.
At the host
If you are not on a hosted builder, ask your host. Many control panels include a redirect screen for single URLs, and support can add server rules for a larger set. If the whole domain is changing, a domain-level redirect to the new site is usually set up with the registrar or host.
Redirect maps for a redesign
A redesign that changes URLs needs a written redirect map, listing every old URL and its new equivalent. Google's guidance for site moves is practical:
- Build the list from your sitemap, analytics, server logs and CMS, so you do not miss old pages that still get traffic or links.
- Map each old URL to the closest new page. Do not send everything to the home page.
- Send each old URL straight to its final address. Avoid chains; Google says to aim for no more than three hops.
- Update canonical tags, internal links and sitemaps to the new URLs.
- Test with the URL Inspection tool or a script.
- Keep the redirects for at least one year.
Our website redesign checklist shows where this fits, and if you are planning a rebuild, see our website redesign service. Changing domain too? Read the .ca vs .com guide first.
Key takeaways
- Use 301 or 308 for permanent moves and 302 or 307 for temporary ones.
- Server-side redirects are the most reliable; JavaScript redirects are a last resort.
- Each platform has its own tool and limits; check them before importing a long list.
- For redesigns, map every old URL to its closest new page and avoid chains.
- Keep redirects for at least a year, and test them.
Frequently asked questions
What is the difference between a 301 and a 302 redirect?
A 301 is permanent, so Google treats the new URL as the one to show in search. A 302 is temporary, so the original URL stays in search results. Use 301 when the old page is gone for good.
Do 301 redirects hurt SEO?
Used properly, they are how you tell Google a page has moved. Problems come from long chains, redirecting many pages to an unrelated page such as the home page, or removing redirects too soon. Google advises keeping them for at least a year.
How long should I keep a 301 redirect?
At least one year, according to Google's site move guidance. If the old URLs still get links or visits after that, keep them. Redirects cost almost nothing to leave in place.
Can I use a plugin for redirects in WordPress?
Yes, a maintained redirect plugin or your host's redirect tool is fine for most sites. For very large lists, rules at the server level perform better. Always take a backup and test the old URLs afterwards.
Sources
- Redirects and Google Search — Google Search Central, accessed November 2026
- Site move with URL changes — Google Search Central, accessed November 2026
- Creating URL redirects — Shopify Help Center, accessed November 2026
- URL mappings — Squarespace Help Center, accessed November 2026
- Setting Up a 301 Redirect for a Page on Your Site — Wix Help Center, accessed November 2026
How Flowmatix can help
We put this into practice for businesses in Toronto and around the world through our Website Care & Maintenance, web development services. Want to know what it would take for your business? Get a personalised quote in about 3 minutes, or request a free website check-up.
More on Websites & Design
What an auto repair shop website needs in Ontario: jobs, estimates, booking
What an Ontario auto repair shop website needs: service pages by job, a booking form that respects estimate rules, and honest pricing language.
November 14, 2026 · 5 min readWebsites & DesignWhat a banquet hall website needs: capacity, availability and alcohol rules
What an Ontario banquet hall website needs: capacity, availability enquiries, AGCO liquor licence info and packages without fake prices.
November 14, 2026 · 5 min readWebsites & DesignBefore and after photos for your website: consent, layout, alt text and speed
Before and after photos on a business website: client consent in Canada, layout, compression, alt text, captions and a gallery that loads fast.
November 14, 2026 · 6 min readGot a project in mind?
Book a free 15-minute strategy call. We talk through what you need, then you get a fixed price in writing before any work starts. No sales script.