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

> Practical guide and complete protocol wording; fictional examples, without a website assessment.

Version: 0.3.0-draft.9 — published draft release.

Commit: `d6a6e73f5c21d52131d3f4e39cde309d97385cbc`.

SHA-256 (spec/protocol.json): `3af55b64677ccd74d3ccfcc49f3dbf469c90fb214844fe13c5f10773a11d9041`.

Attribution: Edikka. Protocol text and data: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).

[Normative JSON source](https://github.com/web-evidence/tsep/blob/v0.3.0-draft.9/spec/protocol.json).

[Canonical HTML control page](https://tsep-protocol.org/en/controls/TS02).

## HTTP redirects. The right route.

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.

Practical guide separate from the normative wording, reproduced in full below.

### Understand HTTP redirects

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.

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

The protocol title uses “direct”. In this version, the detailed expectations compare the destination, codes and hop count with the plan approved before capture. Prefer the final destination without needless detours; meeting a plan does not by itself establish SEO optimisation.

**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.

```text
/ancien —301→ /archive —301→ /nouveau —301→ /destination —200
```

```text
/ancien —301→ /destination —200
```

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.

For Google, a 301 or 308 signals that the destination should become the canonical URL. A temporary redirect is followed but is not used for that choice; other signals may apply. TSEP compares the route with declared expectations: destination, statuses and number of steps. That plan is not a universal Google rule.

[Redirects and Google Search](https://developers.google.com/search/docs/crawling-indexing/301-redirects).

### 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 testing · fictional example.

**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.

### With curl · 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.

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

```sh
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.

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.

### With curl.exe · Windows PowerShell

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.

```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
```

```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 computer

Local 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](https://tsep-protocol.org/assets/ts02-local.py.txt)

```sh
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 · fictional, shortened file excerpts.

```http
HTTP/2 301
location: /archive

HTTP/2 301
location: /nouveau

HTTP/2 301
location: /destination

HTTP/2 200
```

```text
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 · same starting URL, same expected destination.

```http
HTTP/2 301
location: https://example.com/destination

HTTP/2 200
```

```text
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.

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](https://app.tsep-protocol.org/diagnostic?lang=en)

### Which evidence should you keep?

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.

### What you can conclude

The result covers the tested address, its route and the evidence available at test time. It does not automatically cover other variants, the whole site, destination-content relevance or an actual Googlebot visit.

### Act: fix a chain, resolve a loop

#### 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.

#### HTTP → HTTPS → www: two rules in sequence

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.

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

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

[Check variants with TS38](https://tsep-protocol.org/en/controls/TS38).

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

[Check the canonical with TS10](https://tsep-protocol.org/en/controls/TS10).

Who acts: Developer · hosting.

### Recheck: 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.

### Frequently asked questions about redirects and SEO

#### 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](https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes).

#### 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](https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes).

#### 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](https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes).

#### “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](https://support.google.com/webmasters/answer/7440203).

#### 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](https://support.google.com/webmasters/answer/7440203).

#### 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](https://developers.google.com/crawling/docs/troubleshooting/http-status-codes).

### Understand the statuses

**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 references

- [Redirects and Google Search](https://developers.google.com/search/docs/crawling-indexing/301-redirects) — developers.google.com · accessed 2026-10-28
- [curl: options and exit codes](https://curl.se/docs/manpage.html) — curl.se · accessed 2026-10-28
- [Chrome DevTools: inspect network requests](https://developer.chrome.com/docs/devtools/network/reference) — developer.chrome.com · accessed 2026-10-28
- [HTTP status codes and Google’s crawlers](https://developers.google.com/crawling/docs/troubleshooting/http-status-codes) — developers.google.com · accessed 2026-10-28
- [RFC 9110: HTTP redirect semantics](https://www.rfc-editor.org/rfc/rfc9110.html#name-redirection-3xx) — rfc-editor.org · accessed 2026-10-28
- [Google: site moves and retaining redirects](https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes) — developers.google.com · accessed 2026-10-28
- [Search Console: Page indexing report](https://support.google.com/webmasters/answer/7440203) — support.google.com · accessed 2026-10-28
- [HSTS preload: HTTP-to-HTTPS constraints](https://hstspreload.org/) — hstspreload.org · accessed 2026-10-28

### Continue reading

- [TS01 — Check the final page’s HTTP response](https://tsep-protocol.org/en/controls/TS01)
- [TS10 — Understand the declared canonical URL](https://tsep-protocol.org/en/controls/TS10)
- [TS38 — Check host, case and trailing-slash variants](https://tsep-protocol.org/en/controls/TS38)

Editorial responsibility: [Edikka](https://tsep-protocol.org/en/about) · updated 2026-10-28 · edition 2026-10-28.5.


### Practical reading · Edikka

[SEO migration: prepare, verify, measure](https://www.edikka.com/en/insights/seo/seo-migration-website-redesign)

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

Article by TSEP’s initiator · accessed 2026-10-28

## Complete protocol wording

Domain: HTTP and availability.

Rule version: 0.3.0-draft.6.

## Required inputs

http, intent

## Applicability

Variants and legacy URLs with a declared expected behavior.

## Procedure

Test HTTP/HTTPS, host, trailing-slash and legacy URL variants, including the redirect count.

## Expectation

Each tested variant follows the approved destination and hop count without a loop; the owner confirms intent.

## Evidence

One final destination, documented chain and no loop.

## 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.

## Atomic rules

### TS02-A01 — Previously approved redirect plan

#### Required inputs

intent

#### Applicability

Variants and legacy URLs with a declared expected behavior.

#### Procedure

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.

#### 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

Plan, context, declared owner identity and role, date, decision, reason, assistance and review provenance; exact digest of examined criteria.

#### 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.

### TS02-A02 — HTTP trajectory matches the plan

#### Required inputs

http, intent

#### Applicability

Variants and legacy URLs with a declared expected behavior.

#### Procedure

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.

#### 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

Original HTTP requests/responses per hop, URL, completeness, client and context; prior plan. Proven contradictions survive later gaps and absent A01 approval.

#### 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.

## References

- [https://developers.google.com/search/docs/crawling-indexing/301-redirects](https://developers.google.com/search/docs/crawling-indexing/301-redirects)
