The short answer

Use a 301 redirect when a page has permanently moved to a relevant new address. Use a 302 when visitors should go elsewhere temporarily and the original route is intended to return. Verify the actual HTTP status, Location header and final destination; arriving at a working page alone does not identify the redirect type.

On this page
  1. Choose the move you actually intend
  2. Make a small URL plan before adding rules
  3. Understand what search engines can infer
  4. Inspect the first response before following it
  5. Follow the route and inspect the destination
  6. Finish the move beyond the redirect rule
  7. Sources & further reading

Choose the move you actually intend

A 301 redirect says a resource has moved permanently. A 302 says the move is temporary. Both can send a visitor to another address, so watching the browser arrive at a working page does not tell you which response was used.

MDN's 301 reference describes a permanent move to the address supplied in the HTTP Location header. Its 302 reference describes a temporary move using the same header mechanism.

Start with the editorial or operational decision: has the old page been replaced, or should it return? Do not choose 301 simply because you have heard it is “better for SEO,” or leave a permanent move on 302 because the redirect setting was convenient.

This guide concerns ordinary public pages fetched with GET. Forms and APIs have an additional request-method requirement, covered briefly below.

Make a small URL plan before adding rules

Imagine a fictional seed shop maintaining three pages. The paths and decisions below are illustrative; they are not routes on WhiteGloveAEO or observations about a real business.

Situation Example route Decision to implement
A guide has a permanent new address /old-seed-guide to /guides/seed-starting A 301 sends visitors to the replacement guide
A workshop page temporarily points to the current event /workshops to /events/seed-workshop A 302 while the normal workshop page is intended to return
A retired service has no relevant replacement /services/soil-testing Do not invent an unrelated redirect just to make the URL open

For the permanent move, verify that the new guide still answers the old reader's question. An attractive homepage is not automatically a useful replacement for seed-starting instructions.

Google's URL-migration guidance warns against sending many old URLs to one irrelevant destination. If a page really has no replacement, its guidance supports returning an appropriate 404 or 410 instead. A custom “not available” screen must return the intended status rather than silently serving an error message with 200.

For the temporary workshop route, write down what ends the detour: for example, restoring the normal schedule after the event. Assign someone to review that condition. Without a return plan, a supposedly temporary rule can become forgotten infrastructure.

The plan should record the source URL, intended destination, status, reason and review or return condition. Include any meaningful query-parameter variants and the behavior they need to retain; testing a bare path alone can miss lost functionality. That is more useful than a spreadsheet containing only old and new strings.

Understand what search engines can infer

Google's current HTTP-status guidance describes a permanent redirect as a strong signal for processing the destination and a temporary redirect as a weaker signal. Its redirect guidance connects the permanent-versus-temporary choice to the preferred URL in search.

Those are processing signals, not a promise that a particular URL will appear immediately. Do not turn the distinction into a fixed percentage of “link value” or a guaranteed ranking change. A redirect's destination, content and other signals still matter.

There are also 307 and 308 redirects. MDN explains that a 301 or 302 response to POST can result in a GET request; 307 and 308 preserve the method. If a form submission or API requires the original method and body, have the implementation reviewed for that behavior. A rule that works for a simple article link is not sufficient evidence for a payment or account flow.

For normal page moves, use the appropriate server-side redirect capability in the existing host or CMS. Google recommends permanent server-side redirects when a page's search address needs to change. The exact configuration depends on that platform; do not paste another server's rewrite syntax into a different system.

Inspect the first response before following it

For the fictional permanent move, an illustrative response is:

HTTP/1.1 301 Moved Permanently
Location: https://example.com/guides/seed-starting

That is a teaching example, not a captured response from the example domain. The important observations are the status and destination header. A link placed in a normal 200 page is not the same response.

The commands below use a macOS or Linux-style shell. To inspect a public URL you manage, replace the example address in this curl command:

curl -sS --max-time 15 -D - -o /dev/null \
  'https://example.com/old-seed-guide'

This sends a GET, prints response headers and discards the response body. It does not follow the redirect because it has no -L option. The official curl manual documents the header-output and redirect-following options.

Check the actual status rather than the CMS rule's name. Then read Location and confirm it points where the plan says. An unexpected host, misspelled path or extra intermediate route is a reason to investigate before calling the move complete.

Follow the route and inspect the destination

The first response can be correct while the destination is broken. Use a second GET check to follow the route with a bounded redirect limit:

curl -sS -L --max-redirs 5 --max-time 15 -o /dev/null \
  -w 'Final: %{url_effective}\nStatus: %{http_code}\nRedirects: %{num_redirects}\n' \
  'https://example.com/old-seed-guide'

The five-hop limit is a diagnostic choice for this command, not a statement about Google's crawler limit. Curl reports the final effective URL, response code and number of redirects it followed. Check its errors and exit status too: reaching the redirect limit is a failed check even if the command prints those fields.

Compare those observations with the plan:

  • The final address should be the intended replacement or temporary destination.
  • The final page should return its expected successful response, commonly 200 for a public HTML page.
  • Open the destination and check its actual content. A successful status alone does not prove relevance or even that the page contains a useful answer.
  • Investigate extra hops, a loop, an error destination or a return to the original URL.

For the temporary workshop example, repeat both checks with its source address. Expect the planned 302 first, then the correct event page. Also test the normal page again when the temporary rule is removed.

A terminal check observes HTTP behavior. It does not establish Google's selected canonical, indexing, rankings or the experience of every browser. Google's status documentation explicitly notes that a successful 2xx response does not guarantee indexing.

Finish the move beyond the redirect rule

For a permanent move, update your site's incoming links to use the final address directly. The internal-linking guide explains how to review the destination and the surrounding link text together. Avoid leaving a chain of old editorial links that all depend on intermediate rules.

Maintain the new preferred address in the XML sitemap when it belongs in that inventory. Keep the old-to-new mapping so later maintenance does not accidentally send the old address somewhere unrelated.

For a temporary move, keep the return condition visible in the maintenance record. Confirm that restoring the original route also restores the intended content and navigation; a rule deletion by itself is not the whole acceptance test.

Finally, do not use redirects as a substitute for deciding whether content should remain public. If the task is to exclude an accessible page from search or protect private material, the robots.txt versus noindex guide addresses those different controls.

The move is ready when its purpose, first response, final destination and useful content agree. Search processing can be monitored separately without changing a correct temporary rule merely to chase a promised SEO benefit.

Sources & further reading

Primary references checked Oct 29, 2026. Platform guidance can change.

  1. MDN: 301 Moved Permanently
  2. MDN: 302 Found
  3. Google: Redirects and Search
  4. Google: HTTP status codes and crawlers
  5. Google: Site moves with URL changes
  6. curl: Official command manual

AI-assisted research and writing. Learn about our editorial standards.

Suggest a correction ↗