Cloudflare setup 301 Redirect from domain / subdomain

Updated: 14th April 2024
Tags: cloudflare

If you need to redirect from domain / subdomain to other domain subdomain, you need to:

  1. Make sure ns servers point to cloudflare
  2. Add/Change record of the domain/subdomain that you want to redirect to something else. A record must have value 192.0.2.1 (Cloudlare ip for docs) or any resorvable ip address.
  3. Create redirect rule.