TS02HTTP and availability

HTTP redirects. The right route.

Guide · Redirects

An HTTP redirect sends one address to another. To check it, follow each step to the final page, record the status codes and compare the route with what was intended. TS02 helps document chains, loops and deviations from the confirmed plan.

Protocol wording · v0.3.0-draft.9

Redirects are intentional, direct and loop-free.

The control
TS02 · HTTP redirects
Prepare
Starting URL and destination
In the app
HTTP route + confirmed plan
Check in TSEP Control

Understand

HTTP redirects.
Every step matters.

An HTTP redirect tells the browser to request another address, using a 3xx status and a Location header. After a migration, a move to HTTPS or a domain change, check both the route and the destination page: reaching a page does not establish that the redirect is correct.

A redirect chain
One address redirects to a second, which redirects again before the final page. The destination can be correct despite these intermediate steps.
A redirect loop
The route returns to an address already visited. The client cannot reach the destination through that route.
Before / after: shorten a chain.Fictional example · same start, same destination
Before · 3 redirects
  1. /ancien301 →
  2. /archive301 →
  3. /nouveau301 →
  4. /destination200
After · 1 redirect
  1. /ancien301 →
  2. /destination200

Here, the plan expects one direct redirect. The acceptable number of steps depends on your case. This example illustrates a route; it is not an assessment result.

301, 302, 303, 307, 308: which code?

301 / 308 Permanent move
Choose these when the address change is permanent.
302 / 307 Temporary move
Choose these when the move is temporary. A 302 is not, by itself, an SEO error.
303 See another resource
Often used after a form submission to display another page with a retrieval request. It is not a permanent replacement for an old URL.

307 and 308 preserve the request method; 301 and 302 may change a POST to GET. The method below uses GET. A 304 indicates an unchanged response to a conditional request, not a change of address. HTTP reference.

Check

How do you check
a redirect?

Check without a specialist tool

Use the browser to inspect the route, or curl to keep files you can compare before and after a fix. In either case, start from the exact old address, including its scheme, host, path and relevant parameters.

The expected route, before testingFictional example · a permanent move
Starting URL
https://example.com/ancien
Expected destination
https://example.com/destination
Allowed route
Exactly one 301 redirect, then a 200 response.
Intent
A permanent move to the chosen replacement page. For a TSEP assessment, the owner must approve the plan before capture.

In Chrome: follow each response

  1. In Chrome, open Developer Tools, then Network. Enable Preserve log and Disable cache. Keep Developer Tools open.

  2. Clear the network log, then enter the full starting URL in the same tab. Check that the first request matches that exact address. Keep all requests visible and identify those belonging to the main navigation.

  3. Open each response in Headers. Record Request URL, Status Code and, for each redirect, Location. Follow the sequence to the final response, then check that its content is the page you expected.

A “307 Internal Redirect” caused by HSTS can be generated by the browser without an HTTP server response. Disabling the cache does not disable HSTS. Record this step separately; the curl method below provides a separate observation. Official Chrome DevTools help.

With curl: keep the recordShow the command · macOS / LinuxHide the command · macOS / Linux

Preparation: macOS or Linux, bash or zsh, curl 7.75 or newer. Use a dedicated folder and replace https://example.com/ancien with your URL. The example.com addresses and responses below are fictional: this domain does not demonstrate the route.

1. Record the date and version

Preparation commands
date -u '+%Y-%m-%dT%H:%M:%SZ' > context-before.txt
curl -q --version >> context-before.txt

2. Copy the command with your URL

curl command to adapt
curl -q --silent --show-error --location \
  --max-redirs 10 --connect-timeout 10 --max-time 30 \
  --dump-header redirects-before.txt \
  --output /dev/null \
  --write-out 'url=%{url_effective}
http=%{http_code}
redirects=%{num_redirects}
curl_exit=%{exitcode}
next=%{redirect_url}
' \
  'https://example.com/ancien' \
  > result-before.txt 2> errors-before.txt
cat result-before.txt

Open result-before.txt for the summary, redirects-before.txt for successive responses and errors-before.txt for any errors. Keep context-before.txt and the exact command too, along with the expected URL and route. Running it again overwrites these files: use a separate folder for each test.

This command follows HTTP responses using GET. It retains headers; the received body is discarded, so it is not retained evidence. -q, placed first, ignores curlrc configuration; -I would send a HEAD request, which can receive a different response.

10 redirects and 30 seconds overall bound this collection; 10 seconds bounds connection setup. These are not TSEP pass criteria: two hops can already contradict a plan that expects just one. Keep the same limits before and after the fix.

If the test stops

curl_exit=0 means the transfer completed without a curl error, even if the final response is 404. Code 47 means the redirect limit was reached: a long chain can cause it, not just a loop. Read a timeout or DNS/TLS error alongside any responses already received. An incomplete collection does not by itself establish a site error; an already documented contradiction remains usable. The next field identifies the next destination if the limit prevents following it. curl options and exit codes.

On Windows: use PowerShellShow commands · curl.exeHide commands · curl.exe

Proposed variant for Windows PowerShell 5.1 or PowerShell 7 with curl.exe 7.75 or newer; it was not executed on Windows during this review. Use curl.exe to avoid the PowerShell alias. Check the version, work in a dedicated folder and replace the fictional URL.

Prepare the test · PowerShell
curl.exe -q --version
(Get-Date).ToUniversalTime().ToString('yyyy-MM-ddTHH:mm:ssZ') | Set-Content context-before.txt
curl.exe -q --version | Add-Content context-before.txt
Capture the route · PowerShell
curl.exe -q --silent --show-error --location --max-redirs 10 --connect-timeout 10 --max-time 30 --dump-header redirects-before.txt --output NUL --stderr errors-before.txt --write-out 'url=%{url_effective}
http=%{http_code}
redirects=%{num_redirects}
curl_exit=%{exitcode}
next=%{redirect_url}
' 'https://example.com/ancien' > result-before.txt
Get-Content result-before.txt

The limits and files have the same meaning as in the macOS/Linux command. NUL discards the received body; --stderr keeps errors in errors-before.txt. Paste the whole block into PowerShell, not the cmd.exe prompt. Use a new folder for the recheck.

Replay the cases on your computerLocal fictional playground · Python 3.9+ and curl

Download the script into a dedicated folder and save it as ts02-local.py. It starts a loopback-only server, without additional libraries or external websites.

Download the redirect playground

Start the fictional routes
python3 ts02-local.py

The terminal prints URLs and expected results: chain, direct route, 302, relative Location, 404 destination, loop and exceeding ten hops. In a second terminal, use the guide’s curl command with a printed URL. Keep files in a new folder for every case. Stop the server with Ctrl+C.

Synthetic scenarios tested on macOS with bash and zsh; Windows and Linux were not executed during this acceptance run. They illustrate local plain HTTP without TLS, HSTS, browser or TSEP assessment.

Read the HTTP responses, before and after

Fictional case: an old page has moved permanently. The expected route is https://example.com/ancien → https://example.com/destination, with one 301 redirect followed by a 200 response.

Before · three redirectsFictional, shortened file excerpts
Headers before the fix
HTTP/2 301
location: /archive

HTTP/2 301
location: /nouveau

HTTP/2 301
location: /destination

HTTP/2 200
Summary before the fix
url=https://example.com/destination
http=200
redirects=3
curl_exit=0
next=

The destination is reached, but the route has three redirects instead of the one expected. That mismatch is what needs fixing.

After · one redirectSame starting URL, same expected destination
Headers after the fix
HTTP/2 301
location: https://example.com/destination

HTTP/2 200
Summary after the fix
url=https://example.com/destination
http=200
redirects=1
curl_exit=0
next=

The first block redirects to another URL; the second is the final response. The summary confirms one redirect and the destination address. These elements match the expected route in this example. Also open the destination: an empty page, an error served with status 200 or unrelated content does not become relevant merely because of its HTTP status.

Relative Location and HTTP version: two useful details

A Location such as /destination is relative: resolve it against the URL of the step that returned it. The header is not always a full address.

HTTP/1.1 301 Moved Permanently and HTTP/2 301 indicate the same status here. The reason phrase and header-name casing can vary. If you use a proxy, a 200 Connection established block can refer to the tunnel, not the page.

curl does not follow JavaScript or meta refresh. These mechanisms are not assessed by the TS02 HTTP workflow: they remain unestablished, meaning NT in the absence of an evidenced contradiction, without justifying NA. This command does not manage session cookies or send a language preference. Cache, CDN, location or user agent can also change responses. Neither test necessarily reproduces Googlebot. The record helps with diagnosis; it does not replace the evidence and prior approval required for a TSEP assessment.

Document the check in TSEP Control

The app follows redirects from the selected starting address and records HTTP status codes within the plan’s limits. From an analysis, it suggests http/https, www and trailing-slash variants: you choose the starting address to test.

The application asks you to confirm the plan before the test. Reading this guide does not start an analysis.

Check in TSEP Control
Which evidence should you keep?Show the evidenceHide the evidence

The approved plan, complete HTTP chain and final destination. Each selected starting address has its own test.

Also retain the date, collection limits and the reasons for the result. The report identifies the evidence profile used; headers alone do not establish that the page body was retained.

Act

Fix a chain.
Resolve a loop.

Fix the observed cause while keeping the intended destination.

301 → 301 → 200: a chain

Two redirects precede the final page. If one is expected, point each relevant old URL to the final destination. Keep redirects that are still needed and update internal links.

/a → /b → /a: an observed loop

On the same host and scheme, /a redirects to /b and then /b to /a. The route returns to an already visited URL. Look for conflicting rules in the CMS, server and CDN, especially HTTP/HTTPS or www/non-www.

302 → 200: a temporary move

This route can be intentional, for example during a temporary outage. Confirm the intended duration with the owner; do not automatically replace every 302 with a 301.

301 → 404: a missing destination

The redirect was followed, but the destination returns 404. If a 200 page was expected, correct the destination or restore the page. A curl_exit=0 does not undo this observation.

200 without a redirect: check the intent

If the plan expects no redirects, this can be normal. If a move was expected, the old URL still responds directly: check its content and the missing rule before making a fix.

404 or 410 at the start: is a redirect missing?

If this old URL should lead to a replacement page, check for a missing or misapplied rule. Without a relevant replacement, deliberate removal may justify 404 or 410: do not redirect everything to the homepage.

After a migration, also align internal links, the sitemap and language references with the relevant new URLs. Check the declared canonical with TS10.

HTTP → HTTPS → www: two rules in sequenceFictional example · one chosen destination

Fictional example: one rule forces HTTPS, then another adds www. Target the final destination directly where constraints allow. Special case: for HSTS preloading, if port 80 listens, hstspreload.org requires HTTPS on the same host first; do not remove that hop without examining the commitment. Test HTTPS without www separately. Using www is not an SEO requirement; the possible conflict with TS38 is detailed in that control.

Before · 2 redirects

http://example.com/page → https://example.com/page → https://www.example.com/page

After · 1 redirect

http://example.com/page → https://www.example.com/page

Check variants with TS38

Who acts: Developer · hosting

Recheck

After the fix.
Compare the evidence.

Compare two dated observations with the same starting URL, expected destination and limits. A shorter chain documents a route change; it does not, by itself, prove a ranking gain or that the page is indexed.

  1. Use the same starting address and expectations as the first test. With curl, use a new folder and repeat the preparation and capture with the same options.

  2. Compare the headers, final URL, final status, redirect count and curl_exit. Open the destination page to check its content.

  3. Keep both dated observations. Repeat separately for other old URLs or relevant variants: one successful starting address does not validate all others.

From the result, “Recheck this redirect” proposes the same starting address and expectations. Confirm the new test; earlier results are retained. The comparison can show, for example, a change from three redirects to one.

Redirects and SEO: your questions

How many redirects are acceptable?

Google recommends redirecting straight to the final destination. Otherwise, it advises ideally no more than three redirects and fewer than five. For TS02, compare the route with the hop count approved before testing: this Google guidance does not replace the control’s plan. Google source.

Does a 301 redirect lose PageRank?

No: Google says that 301 and other permanent redirects do not cause PageRank loss. A migration can still involve ranking fluctuations. Checking the HTTP route measures neither transferred PageRank nor changes in your traffic. Google source.

How long should a redirect stay after a migration?

Google recommends keeping it for as long as possible, generally at least one year after a migration. That is not a removal deadline: links and visitors may still use the old address. Update your links to the destination too. Google source.

“Page with redirect” in Search Console: does it need fixing?

Not necessarily. This status describes a non-canonical URL that redirects: that address is not indexed. If the move is intended, check the destination; its indexing still needs a separate check. This status does not mean “Redirect error”. Google source.

What does “Redirect error” mean in Search Console?

Google lists four causes: an overly long chain, a loop, a URL that eventually exceeds the maximum length, or a bad or empty URL in the chain. Record the responses and Location headers to identify the failing step, then compare with the crawl date shown in Search Console. Google source.

Does a successful redirect guarantee indexing?

No. It establishes an observed route for the tested URL. Indexing also depends on the destination page and other signals. Separately check its HTTP response, canonical, indexability and, if you have access, its status in Search Console. Google source.

Your reference points

To go further.

Statuses, sources and method.

Understand the statusesC · NC · NT · NA

Each status depends on the control’s evidence and rules. It applies to the assessed scope without certifying the entire website.

C · Conforming
All applicable expectations are satisfied in the assessed scope, with the required evidence. Keep dated evidence; this outcome does not extend to unassessed URLs.
NC · Nonconforming
Evidence establishes a contradiction with an applicable expectation: the plan may have been rejected or the observed route may differ from the declared plan. Read the reason and the relevant evidence before making a fix.
NT · Not tested or inconclusive
The required evidence does not support a conclusion, for example when a review is missing or collection cannot establish the route. Read the report’s limits and reason; a collection stop does not by itself establish a site error.
NA · Not applicable
Use only when non-applicability is justified under the rules. An address without redirects may also satisfy a plan that expects zero redirects.

Sources and references8 references

Detailed method and rules2 rules

Complete protocol wording v0.3.0-draft.9. The practical guide and normative criteria are separate. Your report identifies the engine version used.

TS02 — Redirects are intentional, direct and loop-free.

When it applies
Variants and legacy URLs with a declared expected behavior.
Expectation
Each tested variant follows the approved destination and hop count without a loop; the owner confirms intent.
Evidence to retain
One final destination, documented chain and no loop.
How to check
Test HTTP/HTTPS, host, trailing-slash and legacy URL variants, including the redirect count.
Non-applicability
No redirects or expected variants, supported by an inventory.
Limitations
A valid redirect does not prove the semantic relevance of its destination. The executable reference covers bounded server-side HTTP trajectories; other mechanisms remain unestablished, without exempting the control.
Outcome clarification
C requires all expectations across the declared scope. NC requires evidenced contradiction; otherwise NT. NA requires evidence of non-applicability.
Reference scope
Technical reference; the TSEP acceptance rule remains an editorial proposal.
Required inputs (protocol identifiers)
http, intent
TS02-A01 — Previously approved redirect plan
When it applies
Variants and legacy URLs with a declared expected behavior.
Expectation
The owner explicitly approves the applicable plan before capture. Explicit rejection bound to the same plan is fail; missing or unattributable review remains inconclusive.
Evidence to retain
Plan, context, declared owner identity and role, date, decision, reason, assistance and review provenance; exact digest of examined criteria.
How to check
Declare source, final destination, allowed redirect and terminal statuses, minimum/maximum redirect count and context. Check the supplied owner review, reasoned, dated between declaration and capture and digest-bound to plan/context.
Assumptions
The owner supplies criteria before capture; a laboratory author may supply an explicitly synthetic review. A digest binds records without authenticating a person.
Inconclusive outcome
Missing, invalid or late plan; absent, unbound or mistimed review; unsupported mechanism. The tool supplies no human approval.
Non-applicability
No atomic exemption. Whole-control non-applicability needs a separate positive inventory; a missing capture does not establish it.
Limitations
A valid redirect does not prove the semantic relevance of its destination. The executable reference covers bounded server-side HTTP trajectories; other mechanisms remain unestablished, without exempting the control.
Required inputs (protocol identifiers)
intent
TS02-A02 — HTTP trajectory matches the plan
When it applies
Variants and legacy URLs with a declared expected behavior.
Expectation
The complete chain matches declared destination, statuses and bounds, without a loop. A forbidden type, exceeded maximum, redirect without Location or return to a visited URL is fail as soon as a complete prefix establishes it. Wrong terminal destination/status or insufficient count is fail after an attributable terminal response.
Evidence to retain
Original HTTP requests/responses per hop, URL, completeness, client and context; prior plan. Proven contradictions survive later gaps and absent A01 approval.
How to check
Read each attributable GET exchange in order, resolve Location, retain codes and URLs, count redirects and check terminal destination/status. Compare with the pre-capture plan without reconstructing missing responses. Prior profile http-trajectory-headers-v1 may conclude from complete headers after an attributable collector-2 byte-limit stop; the body remains incomplete and unevaluated.
Assumptions
The owner supplies criteria before capture; a laboratory author may supply an explicitly synthetic review. A digest binds records without authenticating a person.
Inconclusive outcome
Unfinished chain without contradiction, collection limit, ambiguous Location, unsupported fragment/syntax, conditional/authenticated request, incomplete or unattributable capture. A collection limit does not prove a loop; exceeding an intended maximum is distinct. Bounded exception: prefix at the exact attributed byte limit with one overflow byte, without ambiguous headers or contradictory framing, under the explicit new profile only.
Non-applicability
No atomic exemption. Whole-control non-applicability needs a separate positive inventory; a missing capture does not establish it.
Limitations
A valid redirect does not prove the semantic relevance of its destination. The executable reference covers bounded server-side HTTP trajectories; other mechanisms remain unestablished, without exempting the control.
Required inputs (protocol identifiers)
http, intent

Origin and scope

Sources.
A clear framework.

Distinguish technical references, TSEP criteria and this guide’s version.

  1. Official documentation

    Redirects and Google Search

    Google Search Central · developers.google.com

    The reference for distinguishing permanent and temporary redirects. It explains how Google handles them; it does not validate your particular configuration.

    Accessed on

  2. Open protocol

    Criteria for TS02

    TSEP · v0.3.0-draft.9

    The expectations, evidence and limits reproduced in this guide. This proposal by Edikka is versioned and published under CC BY 4.0; it is not a Google certification.

    Documented version 0.3.0-draft.9

  3. Practical reading

    SEO migration: prepare, verify, measure

    Edikka · Insights

    To connect the redirect plan to the inventory and migration decisions.

    Article by TSEP’s initiator · accessed