Technical SEO 5 min read

301 redirects: when and how to use them

When to use 301, 302 and 410 responses, how to set up redirects in WordPress and Shopify, redirect mapping for redesigns, and how to avoid chains and loops.

Usman Muhammad UsmanUpdated October 13, 2026
301 redirects: when and how to use them

Whenever a URL changes, visitors and search engines need to be sent to the new one. Redirects do that. Choosing the right type, and setting them up cleanly, protects your rankings and stops visitors landing on error pages. Here is when to use each type and how I manage redirects on WordPress and Shopify sites.

What a redirect is

A redirect is a server response telling the browser that the requested URL has moved, and where to go instead. The browser follows it automatically, usually without the visitor noticing. Search engines follow redirects too and update their index over time.

Redirects are needed when you change a page’s URL, delete a page that has a replacement, merge content, move to HTTPS, change domain or migrate platforms.

301: permanent moves

A 301 redirect tells search engines the move is permanent. Over time, they replace the old URL with the new one in search results and pass ranking signals to the new URL. Use 301 for changed URLs, merged pages and migrations.

Google has said that 301 and 308 redirects pass signals similarly. For SEO purposes, 301 is the standard choice for permanent changes.

Which response?
CodeMeaningUse for
301Moved permanentlyChanged URLs, migrations
302 or 307Moved temporarilyShort-term changes
404Not foundRemoved, no replacement
410Gone permanentlyDeliberately removed

302 and 307: temporary moves

A 302 or 307 redirect tells search engines the move is temporary, so they keep the original URL in the index. Use them for short-term situations, such as a seasonal page or a product temporarily unavailable.

Using a 302 for a permanent change can delay search engines from updating to the new URL. If a temporary redirect has been in place for a long time, search engines may eventually treat it as permanent, but it is better to use the right type from the start.

410 and 404: removed content

If a page is removed and there is no relevant replacement, let it return a 404 or a 410. A 410 tells search engines the page is gone permanently, which can remove it from the index slightly faster. Both are acceptable.

Do not redirect every deleted page to the homepage. Google often treats irrelevant redirects as soft 404s, and visitors are confused when they land somewhere unrelated.

Planning redirects for a redesign

Before a redesign or migration, create a spreadsheet listing every old URL and its new equivalent. Include pages, posts, products, categories, images and PDFs that have traffic or backlinks. Map each to the most relevant new page.

Test the mapping on staging before launch. A complete redirect map is the most important step for keeping rankings during a migration. See my SEO migration checklist.

Setting up redirects in WordPress

The Redirection plugin is a popular free tool for managing redirects, with logging of 404 errors so you can catch missing redirects. Rank Math includes a redirect manager, and Yoast Premium does too. Many SEO plugins create redirects automatically when you change a post’s slug.

For large numbers of redirects or the best performance, redirects can be added at the server level, such as in .htaccess on Apache or Nginx configuration. Hosts and CDNs such as Cloudflare also offer redirect rules.

Setting up redirects in Shopify

Shopify manages redirects under Online Store > Navigation > URL redirects. When you change a product or collection handle, Shopify offers to create a redirect automatically. You can import many redirects at once using a CSV file.

Shopify redirects only apply to URLs that return a 404, so you cannot redirect a page that still exists. See Shopify SEO basics and migrating from WooCommerce to Shopify.

Avoid redirect chains

A redirect chain is when one URL redirects to another, which redirects again, and so on. Chains slow visitors down and waste crawl effort. They often build up over several redesigns. Search engines may stop following long chains.

Update old redirects to point directly to the final URL. Crawl the site to find chains, and fix internal links to point straight to final URLs.

Avoid redirect loops

A redirect loop happens when URLs redirect to each other endlessly, so the page never loads and the browser shows an error. Loops often come from conflicting rules between plugins, server settings and CDNs, especially with HTTPS and www settings.

If you see a ‘too many redirects’ error, check each layer: WordPress URL settings, redirect plugins, .htaccess rules, host settings and CDN SSL mode. Fix the conflicting rule.

HTTPS and domain redirects

Every version of your domain, http and https, with and without www, should redirect in one step to your preferred version. This is usually set up at the server or host level. Test each combination with a redirect checker.

When changing domain entirely, redirect every URL on the old domain to its equivalent on the new domain, and use Search Console’s Change of Address tool. See moving a website to a new domain.

How long to keep redirects

Keep redirects for at least a year, and ideally indefinitely for important pages and pages with backlinks. Removing redirects too soon can lose traffic from bookmarks, links and search results that have not updated.

Redirect lists can grow large over time. They rarely cause performance problems with modern tools, but clean up chains and remove redirects for URLs that never had value.

Getting help

Redirect mapping is a core part of every migration and redesign I manage through my technical SEO service. It protects years of search visibility.

For a full redesign plan, read my website redesign checklist.

Key takeaways

  • Use 301 redirects for permanent URL changes and migrations.
  • Redirect to the most relevant page, not always the homepage.
  • Map every old URL before a redesign or migration.
  • Fix redirect chains and update internal links to final URLs.

Frequently asked questions

How long should I keep redirects?

At least a year, and ideally indefinitely for important pages.

Do 301 redirects lose ranking value?

Google has said 301 redirects pass signals. Relevant redirects preserve most value.

Should I redirect deleted pages to the homepage?

No. Redirect to a relevant page or let it return a 404 or 410.

What causes 'too many redirects' errors?

Conflicting redirect rules between plugins, server settings and CDN SSL settings.

Can I redirect in Shopify?

Yes, under Online Store > Navigation > URL redirects, or by CSV import.

Do redirects slow down my site?

Each redirect adds a round trip. Avoid chains and link directly to final URLs.

Free website audit

Get a free audit of your website

Tell me your URL and I'll send a short, prioritized list of the speed, SEO and security fixes that will make the biggest difference.

  • No obligation, no sales call
  • 5.0 rating on Google and Upwork
  • Reply within one business day
Written by Muhammad UsmanWeb Development Team Lead with 5+ years building WordPress, WooCommerce, Shopify and Wix websites. Experience · Certificates About me

More on Technical SEO

All Technical SEO articles

Have a project in mind?

Tell me what you're building and I'll reply with next steps and an estimate.