Skip to main content Scroll Top

301 Redirect: What It Is, 301 vs 302 vs 308, and a Free Redirect Generator

Written and maintained by the Progression Agency strategy team

A 301 redirect is an HTTP response with status code 301, Moved Permanently, that tells browsers and search engines a page now lives at a new URL and sends them there through the Location header. Use it when an address changes for good: a new slug, a merged page, HTTPS or a new domain. This page explains how it compares with 302, 307 and 308 and how Google reads each one, and the free 301 redirect generator below writes the rules for Apache, Nginx, Netlify, Vercel, Cloudflare and Squarespace from a plain list of old and new URLs.

On this page · 14 sections
  1. How to use the 301 redirect generator
  2. What is a 301 redirect?
  3. 301 vs 302 vs 303 vs 307 vs 308: what each status code means
  4. How Google Search treats permanent and temporary redirects
  5. When to use a 301 redirect, and when not to
  6. Redirect chains and redirect loops
  7. How to set up a 301 redirect in Apache .htaccess
  8. 301 redirects on Nginx, Netlify, Vercel and Cloudflare
  9. 301 redirects in WordPress, Shopify, Squarespace and Wix
  10. How to check that a 301 redirect works
  11. Building a 301 redirect map before a migration
  12. Common 301 redirect mistakes and how to avoid them
  13. Redirect planning and migrations from Progression
  14. More free technical SEO tools and guides

Before you start A redirect is a promise that the old address still works. Keep each rule pointing at a live final URL, and keep it in place long after the move.

Text labeled Illustrative example. uses made up addresses to show how rules behave. Status code meanings, platform steps and Google guidance are described as RFC 9110, MDN, Google Search Central and each vendor’s own documentation state them, as of November 2026.

301 redirect generator

Paste old URL and new URL pairs, pick 301, 302, 307 or 308, and get ready to paste rules for Apache .htaccess (Redirect, RedirectMatch or RewriteRule), Nginx, Netlify, Vercel, Cloudflare Bulk Redirects and Squarespace, plus a CSV redirect map. It flags chains, loops, duplicates, same URL rows, mixed hosts and query strings as you type.

Turn on JavaScript to use the 301 redirect generator.

Runs entirely in your browser: the URLs you paste are never uploaded or stored, nothing is saved between visits, and every download is built on your own device. Test each rule on a staging copy before it goes live.

The generator opens with an illustrative example already loaded, so you can see a chain, a conflict, a query string and a trailing slash row being caught. Replace it with your own list and switch the output format; the checks and the rules update as you type.

How to use the 301 redirect generator

Use the 301 redirect generator by pasting one old URL and one new URL per line, choosing where the rules will run, and copying the output into that server or platform. Before you copy anything, read the checks: they list chains, loops, duplicates and rows a format cannot express.

A four step flow for the 301 redirect generator: paste old and new URL pairs, choose the server and status code, read the checks for chains, loops and duplicates, then copy or download the rules.A four step flow for the 301 redirect generator: paste old and new URL pairs, choose the server and status code, read the checks for chains, loops and duplicates, then copy or download the rules.
Everything runs in the browser; nothing is uploaded.
  1. Paste your pairs; a tab, a comma, a space or an arrow between the two URLs all work.
  2. Pick the output: three Apache variants, Nginx, Netlify, Vercel, Cloudflare, Squarespace or a CSV redirect map.
  3. Pick the redirect type: 301 by default, or 302, 307 or 308.
  4. Add your domain if your list mixes paths and full URLs, or if you want the Cloudflare list.
  5. Read the checks and fix any loop or conflict at the source.
  6. Copy the rules or download the file, then test them on a staging copy.
  7. Download the redirect map as well, so the team can review every row.

Which input formats does the generator read?

It reads two column lists separated by a tab (pasted from a spreadsheet), a comma (a CSV export, with or without a header row), a space, or an arrow such as -> or =>. A third column can set the status for one row, so a Squarespace style line like /old -> /new 302 works as is. Lines starting with # are ignored.

What the checks catch before you publish

Each row is normalized first: hosts are lowercased, spaces and accented letters are percent encoded, and fragments are dropped from old URLs because they never reach a server. Then the generator compares every row with every other row.

  • Same URL rows, where the old and new address match and the rule would loop.
  • Chains, where a new URL is itself redirected further down the list; flattening points the row at the final page.
  • Loops of two or more rows that send visitors around in a circle.
  • Duplicates, where the same old URL appears twice with the same target, and conflicts, where it appears with two targets.
  • Mixed hosts, when old URLs come from more than one domain and need separate rule files.
  • Query strings, which some formats cannot match and others handle with a condition.

What is a 301 redirect?

A 301 redirect is the HTTP status code 301 Moved Permanently, sent with a Location header, which says the requested resource has been assigned a new permanent URI and that future references ought to use the new one. That wording comes from RFC 9110, the HTTP Semantics standard, which defines every redirect code in the 3xx class.

301: Moved Permanently. New permanent URL; POST may become GET.
302: Found. Temporary; POST may become GET.
303: See Other. Fetch another resource with GET.
307: Temporary Redirect. Temporary; method kept.
308: Permanent Redirect. Permanent; method kept.
3xx: Location header. Holds the URL to request next.

On the MDN page for 301, Mozilla adds the search side: a browser receiving a 301 automatically requests the URL in the Location header, and search engines attribute links pointing at the original URL to the redirected resource. In plain terms, a 301 keeps old links, bookmarks and search listings working after an address changes.

A drawn card of a 301 response: the status line 301 Moved Permanently, a Location header with the new URL, a short body, heuristic caching, and the note that a POST may become GET, so 308 is the method preserving choice.A drawn card of a 301 response: the status line 301 Moved Permanently, a Location header with the new URL, a short body, heuristic caching, and the note that a POST may become GET, so 308 is the method preserving choice.
Summarized from RFC 9110 section 15.4.2.

What happens during a 301 redirect

The browser asks for the old URL. The server answers with 301 and a Location header instead of the page. The browser then asks for the address in Location and shows that page; the visitor sees the new URL in the address bar and rarely notices anything else, apart from one extra round trip.

GET /spring-menu HTTP/1.1
Host: www.example.com

HTTP/1.1 301 Moved Permanently
Location: https://www.example.com/menu

301 redirect meaning in one line

Moved Permanently: stop using this address, use that one. That single idea separates it from the temporary codes, which say the move may be undone and the old address should still be used later.

  • The redirect lives on the server or platform, not in the page itself.
  • It works for any file type: pages, PDFs, images and feeds.
  • The RFC calls a 301 response heuristically cacheable, so browsers may remember it.
  • It carries no content of its own beyond a short note and a link.

301 vs 302 vs 303 vs 307 vs 308: what each status code means

301 and 308 mean the move is permanent, while 302, 303 and 307 mean it is temporary; 307 and 308 also promise that the request method stays the same, and 303 always switches to GET. For an ordinary page that visitors load with GET, the practical choice is permanent or temporary.

Redirect status codes compared
CodeRFC 9110 meaningRequest method on the next requestHow Google Search treats it
301 Moved PermanentlyThe resource has a new permanent URIMay change POST to GET, for historical reasonsPermanent: target can become canonical
302 FoundThe resource resides temporarily under a different URIMay change POST to GET, for historical reasonsTemporary: source stays in results
303 See OtherAn indirect response at a different resourceRetrieved with GET or HEADTemporary
307 Temporary RedirectTemporarily under a different URIMust not change the methodTemporary
308 Permanent RedirectA new permanent URIMethod and body unchangedPermanent: target can become canonical
A check grid of five redirect codes: 301 and 308 are permanent, 302, 303 and 307 are temporary; 307 and 308 keep the request method, while 301 and 302 may change POST to GET and 303 always uses GET.A check grid of five redirect codes: 301 and 308 are permanent, 302, 303 and 307 are temporary; 307 and 308 keep the request method, while 301 and 302 may change POST to GET and 303 always uses GET.
Only 308 is both permanent and method preserving.

Why do 307 and 308 exist?

Because 301 and 302 were ambiguous about forms. RFC 9110 explains that early browsers split on whether to resend a redirected POST as POST or as GET, practice settled on GET, and 307 and 308 were added later to state unambiguously that the method is preserved. The RFC also notes that 308 is much younger, from June 2014, so very old clients might not recognize it.

Is a 302 redirect ever better than a 301?

Yes, when the move really is temporary. Google Search Central gives the example of a service that is briefly unavailable: a temporary redirect sends people to a page explaining what is happening without disturbing the original URL in search results. When the page is not coming back, a 302 leaves the old URL showing in results longer than you want.

301 or 308 for a normal website?

Either works for pages people visit, since Google lists both as permanent. MDN’s 308 page notes that the method and body are never changed, which matters for forms and APIs. Vercel recommends 307 or 308 when redirecting a public API, and uses 308 for its own permanent flag.

  • Moving pages for good: 301, or 308 where the platform defaults to it.
  • Short maintenance or a seasonal swap: 302 or 307.
  • After a form submission, to show a confirmation page: 303.
  • Redirecting an API endpoint that receives POST: 307 or 308.
  • Removed with no replacement: no redirect at all; return 404 or 410.

How Google Search treats permanent and temporary redirects

Google treats a permanent redirect as a strong signal that the target should be the canonical URL shown in results, and a temporary redirect as a reason to keep showing the source. Googlebot follows both kinds; the difference is which URL Google’s indexing pipeline prefers.

Two columns: Google treats 301, 308, an instant meta refresh and a JavaScript location change as permanent and shows the target; it treats 302, 303, 307 and delayed refreshes as temporary and shows the source.Two columns: Google treats 301, 308, an instant meta refresh and a JavaScript location change as permanent and shows the target; it treats 302, 303, 307 and delayed refreshes as temporary and shows the source.
Server side redirects are the ones Google is most likely to read correctly.
Redirect methods and how Google Search Central reads them
Redirect methodGoogle Search Central reads it asNotes from Google
HTTP 301 or 308, server sidePermanentHighest chance of being interpreted correctly
HTTP 302, 303 or 307, server sideTemporarySource page stays in results
Meta refresh with 0 secondsPermanentFor when server side redirects are not possible
Meta refresh with a delayTemporaryAny delay above 0 seconds
JavaScript location changePermanentOnly if server side or meta refresh cannot be done; rendering can fail
Crypto redirect (a link saying the page moved)Possibly permanentDo not rely on it unless there is no other choice

In its redirects documentation, Google orders these methods by how likely it is to interpret them correctly, with server side redirects first. It also explains alternate names: after a move, Google keeps track of both URLs, and the old one can still appear occasionally when a query suggests people trust it more, which fades on its own.

Meta refresh and JavaScript redirects

An instant meta refresh, with a delay of 0 seconds, is read as permanent and a delayed one as temporary. A JavaScript location change is only seen if rendering succeeds, so Google advises it only when neither a server side redirect nor a meta refresh is possible. MDN adds that HTTP redirects always run first, then JavaScript, then the meta element.

Does a 301 redirect lose PageRank?

No. Google’s guide to moving a site with URL changes says plainly that 301 and other permanent redirects do not cause a loss in PageRank. What does cost rankings is a missing redirect, a redirect to an unrelated page, or a chain that ends somewhere broken.

How long should a 301 redirect stay in place?

Keep it for as long as possible, and generally at least a year, according to Google’s site move guide. That window lets Google recrawl and reassign links from other sites. For visitors, Google suggests considering keeping redirects indefinitely, while updating your own links so nobody pays for the extra hop.

  • Permanent redirects show the new URL in results over time.
  • Temporary redirects keep the old URL in results.
  • Googlebot can follow up to 10 hops, but Google advises far fewer.
  • Search Console may warn that an old sitemap contains redirecting URLs during a move; Google calls that normal.

Moving a site and worried about the old URLs?Send the current domain, the new one and roughly how many pages there are. The free proposal covers the redirect map, testing and launch week.

Get a free proposalTell us about a project you’d like help with.

When to use a 301 redirect, and when not to

Use a 301 redirect whenever a URL changes permanently and a close replacement exists: a new slug, merged content, a move to HTTPS, a new domain or hostname, or a platform migration. Skip it for temporary changes, for pages deleted with no replacement and for duplicates you intend to keep.

Slug: Renamed page. Old address to the new one.
Merge: Consolidated content. Thin pages into the stronger one.
HTTPS: Secure site. Every http URL to https.
Domain: New brand name. Old domain to the new domain.
Host: www or apex. One preferred hostname.
Move: Platform change. Old CMS paths to new ones.
A drawn checklist: a 301 redirect fits a changed slug, a merge, a move to HTTPS or a new domain; it does not fit a page that is down for a week, a deleted page with no replacement, or duplicate URLs that both stay live.A drawn checklist: a 301 redirect fits a changed slug, a merge, a move to HTTPS or a new domain; it does not fit a page that is down for a week, a deleted page with no replacement, or duplicate URLs that both stay live.
Temporary outages use 302 or 307; deleted pages return 404 or 410.

Changing domains: one more step in Search Console

When the move is from one domain or subdomain to another, Google asks you to submit a Change of Address in Search Console for the old site, after the redirects are live. Google says the tool is not needed for HTTP to HTTPS moves, switching between www and the bare domain, or path changes on the same site. Our Google Search Console guide covers where to find it.

When a redirect is the wrong tool

If content is gone and nothing replaces it, Google’s site move guide says those URLs should return 404 or 410. If two URLs must both stay live with the same content, a canonical tag names the preferred one without moving anyone. And if you control the link, MDN’s advice is to fix the internal link rather than lean on a redirect.

  • Renamed a page: 301 from the old slug to the new one.
  • Merged three thin articles: 301 each to the article that now covers them.
  • Moved to HTTPS: 301 every http URL to its https twin.
  • Picked www or the bare domain: 301 the other hostname, path by path.
  • Rebuilt on a new platform: 301 each old path to its new path, from a full map.
  • Retired a product with a successor: 301 to the successor; with none, 404 or 410.

Redirect chains and redirect loops

A redirect chain is a series of redirects one after another, such as page 1 to page 2 to page 3, and a redirect loop is a chain that comes back to where it started. Chains slow every visit; loops stop the page loading at all.

A bar chart, illustrative example: a chain of three redirects means four requests before the final page loads, while a flattened rule needs two.A bar chart, illustrative example: a chain of three redirects means four requests before the final page loads, while a flattened rule needs two.
Illustrative example. Each hop is one more round trip.

Google’s site move guide says Googlebot can follow up to 10 hops in a chain, but advises redirecting to the final destination directly, and otherwise keeping chains low, ideally no more than 3 and fewer than 5, because each one adds latency and not every browser supports long chains. RFC 9110 asks clients to detect and intervene in cyclical redirections, and notes that an earlier version of the spec recommended a maximum of five redirections.

How redirect loops happen

Illustrative example. A shop moves /sale to /offers, and a year later someone adds a rule sending /offers back to /sale. Each rule is sensible alone; together they loop. MDN describes the result: the server may answer with a 500 error, or the browser gives up with a redirect loop message.

How the generator flattens a chain

When a new URL in your list is also an old URL further down, the generator follows the rows to the last one and writes the rule straight to that final address. Turn flattening off to keep each hop as written; the checks still name every chain and loop by line number.

  • Flatten after every redesign; old rules quietly stack up.
  • Point redirects at the final, live URL, never at another redirect.
  • Watch for rules that add or remove a trailing slash on top of a move.
  • Check HTTP to HTTPS and www rules together; they often form a two hop chain.
  • Read why traffic drops after a website redesign for how chains and misses show up in the numbers.

How to set up a 301 redirect in Apache .htaccess

On Apache, write a 301 redirect with Redirect or RedirectMatch from mod_alias for simple moves, and with RewriteRule from mod_rewrite when you need to match a query string or build the target from parts of the request. Apache’s own guidance says simple redirection should be done with Redirect and RedirectMatch rather than RewriteRule.

Apache directives for a 301 redirect
DirectiveModuleHow it matchesQuery stringsStatus with no code given
Redirectmod_aliasStart of the path; the rest of the path is appended to the new URLNot matched302
RedirectMatchmod_aliasA regular expression against the pathNot matched302
RewriteRule with [R]mod_rewriteA regular expression; no leading slash in .htaccessMatched with RewriteCond %{QUERY_STRING}302

Redirect and RedirectMatch from mod_alias

The mod_alias documentation gives the syntax Redirect [status] URL-path URL. The old path is case sensitive, starts with a slash and is matched as a prefix, so extra path is appended to the new URL. With no status the redirect is temporary, a 302; permanent or 301 makes it permanent. RedirectMatch takes a regular expression instead, which allows an exact match.

# .htaccess in the site root
Redirect 301 "/spring-menu" "https://www.example.com/menu"
RedirectMatch 301 "^/events/2024/?$" "/events"

RewriteRule from mod_rewrite

In an .htaccess file the pattern is matched against the path without its leading slash, so a pattern beginning with ^/ never matches there. The flags documentation says [R] alone sends a 302, recommends pairing it with [L], and explains that [NE] stops Apache escaping the target, which would turn # into %23 and encode an existing %20 twice. [QSD], available since 2.4.0, drops the incoming query string.

RewriteEngine On
RewriteRule "^spring-menu/?$" "/menu" [R=301,NE,L]
RewriteCond %{QUERY_STRING} "^item=12$"
RewriteRule "^order\.php$" "/order/sourdough" [R=301,NE,QSD,L]

Where to put 301 redirect rules in .htaccess

Put them in the .htaccess file of the folder the old URLs live in, usually the document root, near the top and before any catch all rewrite. Rules run in order and the first match wins. If a site mixes both modules in one .htaccess, Apache notes that mod_alias runs first there.

  • Keep one rule per old URL, most specific first.
  • Write the status explicitly; Apache’s default is 302.
  • Use the RewriteRule output for any old URL with a query string.
  • Use RedirectMatch or RewriteRule for the home page; Redirect / would catch every URL.
  • Apache’s .htaccess tutorial prefers the main server config where you have access, since .htaccess is read on every request.
  • Used as an htaccess redirect generator, the tool above writes Redirect, RedirectMatch and RewriteRule lines from one list.
  • This generator’s Apache output was tested against a running Apache 2.4 server before release.

301 redirects on Nginx, Netlify, Vercel and Cloudflare

Nginx uses return 301 inside a location block, Netlify reads a _redirects file, Vercel reads a redirects array in vercel.json, and Cloudflare runs Single Redirects rules or Bulk Redirect lists at its edge. Each documents its own status codes and quirks, summarized below.

Where 301 redirect rules live on common hosts and platforms
PlatformWhere rules liveCodes the platform documentsNotes from its docs
Nginxreturn inside a location or server block301, 302, 303, 307, 308308 is a redirect from version 1.13.0
Netlify_redirects file or netlify.toml301 (default), 302307 listed as unsupported; ! forces past an existing file
Vercelredirects in vercel.json308 or 307 via permanent; 301, 302, 303 via statusCodeSource matches the path without the query string
CloudflareSingle Redirects rules or Bulk Redirect lists301 (default), 302, 307, 308Bulk CSV source cannot include a query string
ShopifyContent, Menus, URL redirects301Only from URLs that no longer load a page
SquarespaceDeveloper tools, URL mappings301, 302About 2,500 lines; first matching line wins
WixSEO and GEO, URL Redirect Manager301Up to 5,000 redirects; automatic on most slug changes
WordPressCore, a plugin or the server301 for old post slugswp_redirect defaults to 302 unless a code is passed

Nginx: return 301

The nginx rewrite module defines return code URL for codes 301, 302, 303, 307 and 308. A location with = matches one exact URI, and nginx matches locations against the decoded, normalized URI. rewrite with the permanent flag sends a 301 and with redirect a 302.

server {
    server_name www.example.com;
    location = /spring-menu {
        return 301 /menu$is_args$args;
    }
}

Netlify: the _redirects file

Save a plain file named _redirects in the publish directory, one rule per line. Paths are case sensitive, special characters must be URL encoded and the first matching rule wins. The redirect options page gives 301 as the default and 302 for temporary moves, lists 307 as unsupported, and uses a trailing ! to force a redirect when a file exists at the old path.

# _redirects in the publish directory
/spring-menu    /menu    301
/old-blog/*     /blog/:splat    301

Vercel: redirects in vercel.json

Each entry has a source and a destination. The vercel.json reference says permanent true sends 308, false sends 307, and true is the default; statusCode sets another code such as 301 or 302. A has condition of type query matches a query value, because source itself ignores the query string.

{
  "redirects": [
    { "source": "/spring-menu", "destination": "/menu", "statusCode": 301 },
    { "source": "/events-2024", "destination": "/events", "permanent": true }
  ]
}

Cloudflare: Single Redirects and Bulk Redirects

Single Redirects are rules with static or dynamic targets; Bulk Redirects are account level lists of static redirects. The Bulk Redirects CSV format takes source URL, target URL and optional status, with no header row; status defaults to 301 and can be 302, 307 or 308, and a source URL cannot include a query string.

  • Nginx: put rules inside the right server block and reload after a configuration test.
  • Netlify: rules in _redirects run before those in netlify.toml.
  • Netlify: /page and /page/ match the same rule, so a slash only redirect loops.
  • Vercel: paths are case sensitive, so /About and /about are different sources.
  • Vercel: very long lists belong in bulk redirects, which it documents for many thousands of entries.
  • Cloudflare: a source without a scheme applies to both http and https.

Traffic slipped after a relaunch?Share the launch date and the URLs that used to bring visitors. You receive a free proposal for finding the broken paths and fixing them.

Get a free proposalTell us about a project you’d like help with.

301 redirects in WordPress, Shopify, Squarespace and Wix

Hosted platforms put redirects in a settings screen rather than a server file: Shopify under URL redirects, Squarespace under URL mappings, Wix in the URL Redirect Manager, and WordPress through core behavior, a plugin or the server. Google itself notes that platforms like Shopify may already have built in redirect tools.

WordPress: old slugs, plugins and server rules

WordPress core already redirects some old addresses: the wp_old_slug_redirect function looks up a post’s past slugs when a request would otherwise 404 and sends a 301 to the current permalink, for post types that are not hierarchical. For everything else a redirect plugin or server rules do the work; developers note that wp_redirect sends a 302 unless a code is passed.

Shopify: URL redirects in the admin

In the Shopify admin, redirects live under Content, Menus, URL redirects, and can be imported from a CSV. Shopify Help says you can redirect only from broken URLs, sets a limit of 100,000 redirects on standard stores, and warns that URLs with query strings might not work as expected.

Squarespace: the URL mappings panel

Open Developer tools, then URL mappings, and add one line per redirect in the form /old-url -> /new-url 301. Squarespace Help accepts 301 or 302, needs the old URL to no longer exist, applies lines from top to bottom and caps the field at 400 KB, about 2,500 lines. Most mappings cannot use ?, & or #, so the generator leaves those rows out of its Squarespace file.

Wix: the URL Redirect Manager

Wix Help places the URL Redirect Manager under SEO and GEO, Tools and settings. Wix creates a 301 automatically when most page slugs change, but not for Wix Blog posts; it allows up to 5,000 redirects per site, cannot redirect from the homepage there, and needs a custom domain.

How to check that a 301 redirect works

Check a 301 redirect by requesting the old URL and confirming two things: the status line says 301 (or your chosen code) and the Location header names the right final URL. curl, your browser’s developer tools and Search Console’s URL Inspection tool each show this from a different angle.

# Illustrative example: checking one old URL
$ curl -I https://www.example.com/spring-menu
HTTP/2 301
location: https://www.example.com/menu

$ curl -sIL https://www.example.com/spring-menu | grep -iE "^(HTTP|location)"
HTTP/2 301
location: https://www.example.com/menu
HTTP/2 200

The curl manual explains the two flags used above: -I fetches only the headers with a HEAD request, and -L follows the Location header to the next address, showing the headers of every page when combined with -I. By default curl follows up to 50 redirects, which --max-redirs can lower to surface a long chain.

Browser developer tools and Search Console

In a browser, open the developer tools network panel, keep the log between page loads, and visit the old URL: the first request shows the 301 and its Location. In Search Console, URL Inspection reports on the URL you test, not the redirect target, and its Test live URL option fetches the page now; Google sets a daily limit per property on live tests.

Why is my 301 redirect not working?

Usually one of six things: a cached earlier redirect in the browser, a rule order problem where an earlier rule matches first, a platform that only redirects pages which no longer exist, a file that shadows the rule on Netlify, a query string the rule cannot see, or a trailing slash difference.

  • Test in a private window or with curl, since browsers may cache a 301.
  • Move specific rules above broad ones; Apache, Netlify and Squarespace use the first match.
  • On Shopify and Squarespace, remove or rename the old page first.
  • On Netlify, add ! to the status if a file still exists at the old path.
  • On Apache, confirm mod_rewrite is on and AllowOverride lets .htaccess use it.
  • Compare the old URL character by character: case, slash and encoding all count.

Building a 301 redirect map before a migration

A 301 redirect map is the list of every old URL beside the single new URL it should send visitors to, built before launch and checked after it. Google’s site move guide starts the same way: map old URLs to new ones before anything moves.

A five stage timeline: inventory the old URLs, map each to one new URL, test the rules on staging, switch them on at launch and recrawl, then keep them live for at least a year.A five stage timeline: inventory the old URLs, map each to one new URL, test the rules on staging, switch them on at launch and recrawl, then keep them live for at least a year.
Google’s site move guidance covers each stage.
Columns for a 301 redirect map
ColumnWhat goes in itWhy it earns its place
Old URLThe full address as it exists todayThe thing every rule matches
New URLOne closest live page, never a blanket targetVisitors land on what they came for
Status301 or 308 for moves; 302 or 307 for short termTells search engines whether to swap the URL
EvidenceClicks, links or visits the old URL earnedSets the order for testing
Chain checkWhether the new URL redirects againLets you point straight at the final page
TestedStatus and Location seen after launchProof the rule fires on the live server

Where to find every old URL

Google suggests starting with the URLs that matter: your sitemaps, server logs or analytics for the pages with the most traffic, Search Console’s Links report for pages with links, and your content management system for a full listing. Paste the finished list into the generator and download the CSV map alongside the rules.

For drawing the structure itself, our SEO diagram guide shows how a site map and a redirect map fit together, and website migration services explains how Progression runs the whole move, from inventory to the month after launch.

  • Include every URL with traffic, links or a place in a sitemap.
  • Give each old URL exactly one destination.
  • Mark which rows were retired on purpose and should return 404 or 410.
  • Re-crawl the old list after launch and record the status each URL returns.
  • Keep the map; the next redesign starts from it.

Common 301 redirect mistakes and how to avoid them

The most common 301 redirect mistakes are sending every old page to the homepage, using a 302 for a permanent move, letting chains build up, and removing rules too soon. Each one is easy to spot with a list and a crawler.

301 redirect mistakes, effects and fixes
MistakeWhat happensFix
Every old page sent to the homepageVisitors lose the page they wanted; Google may treat it like a missing pageMap each URL to its closest match
302 used for a permanent moveGoogle keeps showing the old URLSwitch to 301 or 308
Chains left after several redesignsExtra round trips; long chains may not be followedPoint each old URL at the final page
A rule that matches its own targetA redirect loop and an error pageExact matches and a same URL check
Redirect rules removed after a few monthsOld links and bookmarks break againKeep rules for at least a year
Internal links still pointing at old URLsEvery click pays for a redirectUpdate links to the new URLs
Old page left live on a platform that needs it goneThe redirect never firesDelete or rename the old page first

Sending every old page to the homepage

It feels tidy and it fails visitors: someone looking for a menu, a guide or a product lands somewhere unrelated. Map each page to its nearest equivalent instead; where nothing close exists, a clear 404 page with search and links serves people better. The 404 error guide covers that page.

A redirect fixes outside links you cannot edit. For links you can edit, MDN’s advice is to update them, because every redirect is an extra request. After a move, search the site for the old paths and replace them.

  • Do not redirect to a page that itself redirects.
  • Do not mix http and https targets in one map.
  • Do not drop the query string from tracking links without meaning to; the UTM builder explains why those tags matter.
  • Do not forget images and PDFs that earned links.
  • Do not leave staging rules or test redirects live after launch.

Redirect planning and migrations from Progression

Progression plans and sets up 301 redirects as part of technical SEO and website migrations: the full URL inventory, the redirect map, rules for your server or platform, testing on staging, launch day checks and the weeks of monitoring after. The goal is simple: every old link still lands somewhere useful, and search traffic carries over.

Typical fees for redirect and migration work (market ranges only)
WorkMarket range (market ranges only)What it usually covers
Technical SEO audit$1,200 to $6,000 (market ranges only)Named URLs, redirect and indexing issues, ranked fixes
Migration support$2,000 to $6,000 (market ranges only)Redirect map, staging QA, launch day and 30 day monitoring
Site migration support, larger sites$2,500 to $15,000 (market ranges only)The redirect map is the deliverable
Domain or URL structure migration$2,000 to $10,000 (market ranges only)Two to four weeks of mapping, rules and checks
Platform migration, business site$8,000 to $60,000 (market ranges only)Rebuild, content move and every redirect

Use the ranges to compare quotes like for like. A Progression proposal is priced for your own site, platform and number of URLs once the current setup has been reviewed.

Need redirects that hold up on any platform?Tell us where the site runs today and where it is going. The free proposal sets out the rules, the checks and the timeline.

Get a free proposalTell us about a project you’d like help with.

More free technical SEO tools and guides

Alongside the 301 redirect generator, Progression keeps free tools and guides for the rest of technical SEO, from crawl rules to structured data.

This page leaves out a lot: the Progression Method, proprietary and reserved for clients. Reach out to learn more

Frequently asked questions

What is a 301 redirect in simple terms?
A 301 redirect is a permanent forwarding address for a web page. When someone requests the old URL, the server answers with status 301 and the new URL, and the browser loads the new page straight away. Search engines learn that the move is permanent and update their listings over time.
Is this 301 redirect generator free, and are my URLs kept private?
Yes, it is free, needs no account and runs entirely in your browser. The URLs you paste are never uploaded or stored, nothing is saved between visits, and every download is built on your own device. Reloading the page brings back the illustrative example list.
How does a 301 differ from a 302 redirect?
A 301 says the page has moved permanently; a 302 says it is somewhere else for now. Google shows the new URL in results for a permanent redirect and keeps the old URL for a temporary one. Both may turn a POST request into GET, for historical reasons.
When should I use a 308 instead of a 301?
Use 308 when the redirect is permanent and the request method must not change, such as a form or API endpoint that receives POST. For ordinary pages either works, since Google treats both as permanent. Some platforms, Vercel among them, send 308 for permanent redirects by default.
What does a 307 redirect mean?
A 307 is a temporary redirect that keeps the request method and body exactly as sent. RFC 9110 says the user agent must not change the method. Google treats 307 as temporary, so the original URL stays in search results while it is in place.
Does a 301 redirect pass ranking value to the new URL?
Yes. Google’s guide to moving a site with URL changes says 301 and other permanent redirects do not cause a loss in PageRank, and MDN notes that search engines attribute links to the redirected resource. The new page still needs to match what the old one offered.
For how long should a 301 redirect be kept on the server?
Generally at least a year, and longer where possible. Google’s site move guide says that window lets it transfer signals and recrawl links from other sites, and suggests considering keeping redirects indefinitely for visitors who follow old links or bookmarks.
How many hops of a redirect chain will Googlebot follow?
Up to 10, according to Google’s site move guide, but Google advises sending each old URL directly to the final page. If that is not possible, it suggests keeping chains to no more than 3 hops and fewer than 5, because every hop adds latency for people.
What causes a redirect loop?
Two or more rules that point back at each other, or one rule that matches its own target. A common case is a trailing slash rule added on top of a move. The server may return a 500 error or the browser stops with a loop message, so the page never loads.
Can a 301 redirect be reversed later?
Yes, you can remove or change the rule, but browsers may have cached it, since RFC 9110 calls 301 responses heuristically cacheable. Google advises permanent redirects only when you are sure the move will not be reverted; use 302 or 307 while you are still unsure.
Does Google treat a meta refresh like a 301 redirect?
An instant meta refresh with a delay of 0 seconds is treated as permanent, much like a 301, and a delayed one as temporary. Google recommends meta refresh only when server side redirects are not possible on your platform, because server side redirects are read most reliably.
Are JavaScript redirects safe for SEO?
They work, but they are the last resort. Google treats a JavaScript location change as permanent, yet it only sees it if rendering succeeds, and rendering can fail. Google advises using one only when neither a server side redirect nor a meta refresh can be set up.
Where should 301 redirect rules go in an .htaccess file?
Put them in the .htaccess file of the folder the old URLs live in, usually the site root, above any catch all rewrite rules. Apache applies the first matching rule, so list specific paths before broad ones, and always write the status, since the default is 302.
Should I use Redirect or RewriteRule on Apache?
Use Redirect or RedirectMatch for simple one to one moves, as Apache’s own guidance recommends. Use RewriteRule when the old URL has a query string to match or the target is built from the request. The generator writes all three variants from the same list.
How do I write a 301 redirect in Nginx?
Add a location block that matches the old path exactly and returns the code with the new URL, for example location = /old { return 301 /new; } inside the right server block. Nginx documents return with 301, 302, 303, 307 and 308, then reload the configuration.
Why does my Netlify redirect not fire?
Usually because a file still exists at the old path. Netlify skips a redirect when content is found there unless the status ends in an exclamation mark, such as 301!. Check rule order as well, since Netlify applies the first rule that matches.
Which status code does Vercel use for a permanent redirect?
Vercel sends 308 when permanent is true, which is the default, and 307 when it is false. To send a 301 or 302 instead, set statusCode in the redirect entry rather than permanent. The generator writes whichever form matches the status you choose.
Can I redirect a URL that has a query string?
Yes, on platforms that can match it. Apache needs RewriteCond with QUERY_STRING, Nginx can compare $request_uri, and Vercel uses a has condition of type query. Netlify matches parameters by name, while Squarespace, Cloudflare Bulk Redirects and mod_alias cannot match them in the source.
How do I test a 301 redirect with curl?
Run curl -I with the old URL to fetch only the headers, then read the status line and the Location header. Add -L to follow every hop and see where the chain ends. curl follows up to 50 redirects by default, and --max-redirs lowers that limit.
Why does my browser still open the old page after I fixed a redirect?
Because the browser cached the earlier answer. 301 responses can be cached, so a browser may repeat an old redirect without asking the server. Test in a private window or with curl, and clear the browser cache before deciding the new rule is broken.
Do I need the Change of Address tool when moving to HTTPS?
No. Google says the Change of Address tool is only for moves from one domain or subdomain to another, such as example.com to example.net. HTTP to HTTPS moves, switching between www and the bare domain, and path changes need only the redirects themselves.
Can Progression plan and set up redirects for our site migration?
Yes. Progression builds the full URL inventory and redirect map, writes rules for your server or platform, tests them on staging, checks every old URL on launch day and monitors the weeks after. Send the current site and the plan, and you receive a free proposal.

Moving a site and worried about the old URLs?Send the current domain, the new one and roughly how many pages there are. The free proposal covers the redirect map, testing and launch week.

Get a free proposalTell us about a project you’d like help with.

Get a free marketing proposal

Tell us what you are trying to grow and we will come back with a plan, not a pitch deck. Same-day reply on weekdays.

Privacy Preferences
When you visit our website, it may store information through your browser from specific services, usually in form of cookies. Here you can change your privacy preferences. Please note that blocking some types of cookies may impact your experience on our website and the services we offer.
Contact Us