Redirecting One Domain to Another Domain on Cloudflare


This tutorial covers redirecting one domain to another. For this, we will be redirecting to

The following settings need to be configured under the domain you are redirecting from, in this example, this is

Step 1, The DNS Record:
The first thing you will need is a DNS record for @, www and any other subdomains you want to redirect, set to cloudflare. This can point to any IP address as the redirection page rule will execute first. I would recommend pointing them to , a dummy IP.

Step 2, The Page Rule:
The second step is the page rule that will perform the redirect. You should add one like this:

This page rule will redirect as per the following examples: > > > >

Should the domain you are redirecting to be served on www, you can add www to the URL at the bottom of the page rule.


Rojen Zaman

Anarchist | GNU/Linux Sys. / DevOps
GnuPG: 0x9089BB25

Nextcloud on Android

mkp224o binary for RHEL x86-64