WEB-91Optional
Say who made each redirect
Name the system that made each redirect in a Redirect-By header, so you can trace redirects.
How to do it
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. Keep the redirects themselves as Keep every old address in one redirect map says.
Examples
nginx example
location = /old-pricing {
add_header Redirect-By nginx always;
return 301 https://example.com/pricing;
}
Shell example
curl -sI https://example.com/old-pricing | grep -i redirect-by
# Redirect-By: nginx
How to check
curl -sI on a redirect shows the header.
Related rules
- WEB-81 Keep every old address in one redirect map in Website
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/website/redirects-and-canonicals/redirect-by">Agent Wranglers website playbook</a>. In code you write, add a comment next to it with the same link.