Add Website

Protected by Cloudflare Access

Add Website

Prefix used to build short links: https://<base>/<slug>. Subdomain (go.<domain>) or path (<domain>/visit) both work. Defaults to go.<domain>.

Cancel

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.

  1. DNS record — In the zone for your domain, add:
    • Type: AAAA (or A)
    • Name: go (or your chosen subdomain)
    • Content: 100:: (AAAA) or 192.0.2.1 (A) — any placeholder; the Worker route intercepts the request
    • Proxy status: Proxied (orange cloud) — required for the Worker route to fire
  2. Worker route — Workers & Pages → affiliate-redirect → Settings → Triggers → Routes → Add route:
    • Route: go.<your-domain>/*
    • Zone: your domain
    Or add it declaratively in worker/wrangler.toml under routes = [...] and redeploy.
  3. Verifycurl -I https://go.<your-domain>/<slug> should return a 302 to 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.