Detour

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.

Try a redirect live on this Worker

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

How it works

StageWhat happens
1. exactOne direct KV GET on the request path — O(1), sub-millisecond, no origin hit.
2. regexAn ordered per-site regex list (paid) — first match wins, with $1 backreferences.
3. originNo rule matched → proxy your real origin. A 404 from the origin is logged (path + count only).

Free vs. paid

FeatureFreePaid
Exact redirects (301/302/307/308)
404 loglast 50unlimited + export
Query-string preservation
Regex redirect rules
Bulk CSV import
Redirect-chain detector

Manage rules

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