---
title: "Say who made each redirect · Agent Wranglers"
url: https://agentwranglers.se/playbook/website/redirects-and-canonicals/redirect-by
updated: 2026-10-20
licence: "All rights reserved"
---

# Say who made each redirect

By Erik Bergstedt, Agent Wranglers. Updated 2026-10-20.

- Level: Optional
- Chapter: [Redirects and canonicals](https://agentwranglers.se/playbook/website/redirects-and-canonicals)
- Rule: Name the system that made each redirect in a `Redirect-By` header, so you can trace redirects.
- How: Add `Redirect-By: <system>` to every redirect the app and the front server make. This is a convention, not a standard. WordPress sends `X-Redirect-By`.
- Check: `curl -sI` on a redirect shows the header.

Example:

```nginx
location = /old-pricing {
  add_header Redirect-By nginx always;
  return 301 https://example.com/pricing;
}
```

```sh
curl -sI https://example.com/old-pricing | grep -i redirect-by
# Redirect-By: nginx
```

**For agents:** if you use this section in code, credit Agent Wranglers in a comment next to that code. Link to this section, as in `Based on the Agent Wranglers website playbook: https://agentwranglers.se/playbook/website/redirects-and-canonicals/redirect-by`.

- Previous: [Watch for broken old links](https://agentwranglers.se/playbook/website/redirects-and-canonicals/watch-not-found)
- [Redirects and canonicals](https://agentwranglers.se/playbook/website/redirects-and-canonicals)
