Get the latest tech news

How to Redirect a Cloudflare Domain to Another URL


Every time I find myself trying to re-learn something I'm taking the time to document. Here's one simple example: I'm a fan of Cloudflare domains because they are at cost purchase and renewal and don't have much of the spam and upselling comm with many other domain providers (like those

I've spent enough time relearning how to do a simple static redirect (instead of Cloudflare's more complicated dynamic version) by digging through Cloudflare docs and forum posts that it was worth codifying how to do the process to save myself time in the future. This creates two A records that point to an IPv4 reserved address set by the IETF for examples. URL redirect → Status Code: Usually 302= Temporarily unavailable or 301= Permanently moved.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of URL

URL

Photo of cloudflare domain

cloudflare domain

Related news:

News photo

Did OpenAI just spend more than $10 million on a URL?

News photo

Chromium uses web search for .internal TLD instead of opening URL

News photo

Show HN: Put ful.co/ in front of any URL to easily copy its SVGs and images