Every dead end, redirected.
This page is the demo origin — the site Detour sits in front of. Detour is a Cloudflare Worker that resolves redirects at the edge, before a request ever reaches an origin, and logs the 404s that slip through so you can clean them up in Search Console. Built for agencies migrating client sites and developers who hate watching 404s pile up.
When demo rules are seeded (see scripts/seed_demo_rules.md), these resolve at the edge:
Until rules are seeded, unmapped paths fall through to this demo page (and the Worker 404-logs anything outside the demo so the log fills up to look at).
| Stage | What happens |
|---|---|
1. exact | One direct KV GET on the request path — O(1), sub-millisecond, no origin hit. |
2. regex | An ordered per-site regex list (paid) — first match wins, with $1 backreferences. |
3. origin | No rule matched → proxy your real origin. A 404 from the origin is logged (path + count only). |
| Feature | Free | Paid |
|---|---|---|
| Exact redirects (301/302/307/308) | ✓ | ✓ |
| 404 log | last 50 | unlimited + export |
| Query-string preservation | ✓ | ✓ |
| Regex redirect rules | — | ✓ |
| Bulk CSV import | — | ✓ |
| Redirect-chain detector | — | ✓ |
Rules are managed through the token-protected control plane. Open the admin tool (paste your admin secret), or use curl — see SETUP.md. Example:
curl -X POST https://detour.wandzilakwebdesign.com/detour/rules \
-H "X-Detour-Admin: $DETOUR_ADMIN_SECRET" \
-H "Content-Type: application/json" \
-d '{"site":"example.com","source":"/old-page","destination":"/new-page","type":301}'
A Wandzilak Web Design Studio plugin · wandzilakwebdesign.com/plugins/detour