Add Website
After saving: Cloudflare setup for the redirect host
The redirect host (e.g. go.example.com) needs DNS + a Worker route so short links resolve.
Do this once per domain in the Cloudflare dashboard.
- DNS record — In the zone for your domain, add:
- Type:
AAAA(orA) - Name:
go(or your chosen subdomain) - Content:
100::(AAAA) or192.0.2.1(A) — any placeholder; the Worker route intercepts the request - Proxy status: Proxied (orange cloud) — required for the Worker route to fire
- Type:
- Worker route — Workers & Pages →
affiliate-redirect→ Settings → Triggers → Routes → Add route:- Route:
go.<your-domain>/* - Zone: your domain
worker/wrangler.tomlunderroutes = [...]and redeploy. - Route:
- Verify —
curl -I https://go.<your-domain>/<slug>should return a302to the link's target URL.
Using a different host (e.g. r.example.com)? Set it as Redirect Host above and use that name in steps 1–2.