Redirect Rules: send one address to another without any code
Redirect Rules (Single Redirects and Bulk Redirects)
What it is
A redirect tells the browser "this page lives somewhere else now" and sends it on to a new address. Cloudflare can do this at its edge, before the request ever reaches a Worker, Vercel, Netlify, or your VPS, so no code or server is needed. You find it in a zone under Rules, then Overview, where you create a Redirect Rule (Cloudflare calls these Single Redirects).
Each rule has two halves. The first half is a filter: when incoming requests match, for example Hostname equals old.drkotha.com, or URI Path starts with /referrals. The second half is the target: a Static URL (always the same address) or a Dynamic expression (built from the request, for example keeping the path so old.drkotha.com/a goes to new.drkotha.com/a). You also pick a status code: 301 means moved permanently and browsers remember it, while 302 means temporary and browsers check again next time. A Preserve query string box keeps anything after the ? in the address.
Single Redirects are for a handful of rules written per zone. Bulk Redirects live at the account level under Rules and use a list, so you can upload hundreds of old-address to new-address pairs at once. The old Page Rules feature did the same job and is being retired, so Redirect Rules are the place for new redirects. One thing to know: the hostname still needs a proxied (orange cloud) DNS record, even a placeholder, so the request reaches Cloudflare in the first place.
Why it matters
When you rename or move an app, such as moving a tool from one subdomain to another or from Vercel to a Worker, a redirect keeps old bookmarks, printed QR codes, and links you sent to colleagues working instead of showing an error.
It is also the tidy way to make short, memorable addresses. A short link like book.drkotha.com can point at a long booking or referral page, and you can change the target later without reprinting anything.
Be careful with 301. Because browsers cache a permanent redirect, a mistake can stick on someone's phone even after you fix the rule. Test new redirects with 302 first, and only switch to 301 once you are sure. Redirect loops (A sends to B and B sends back to A) show as "too many redirects".
On your account
From your own setup: kosan.xyz already has a Single Redirect rule named "AI News root" that serves ainews.kosan.xyz for the Instinct bot's daily AI news site. It is a good real example to read, because it shows a filter on the left and a target URL with a status code on the right. It must stay exactly as it is: do not edit, disable, or delete it.
A practice idea on the other zone: a rule on drkotha.com where Hostname equals learn.drkotha.com sends visitors with a 302 to https://cloudflare.kosan.xyz/, so a short address on your main domain opens this tutor. Because learn.drkotha.com would need a proxied DNS record to work, that part is optional and only for when you want it live.
Nothing was changed for this lesson. This desk only redeployed its own Worker, cloudflare-tutor, and did not touch any redirect rule, DNS record, ainews, aiweekly, or any other Worker.
Do this yourself
These stay in the dashboard, on your side. This site does not change DNS, routes, or other Workers.
- In the Cloudflare dashboard open kosan.xyz, then Rules, and read (without changing) the "AI News root" rule to note its filter, target URL, and status code, then open drkotha.com, Rules, and create your own Redirect Rule there with status 302 (for example Hostname equals learn.drkotha.com to https://cloudflare.kosan.xyz/), leaving every kosan.xyz rule untouched.