Skip to main content
Photo of DeepakNess DeepakNess

Redirect subdomain to a URL in Cloudflare

Unproofread notes

I had to redirect a subdomain of my domain to an external domain, and here's how I did it using Cloudflare Redirect Rules:

Here, I will take the example that I have to redirect test.deepakness.com to the https://rohit.online URL.

Step #1: Create a new CNAME DNS record with the following details:

Step #2: Create a new rule by clicking on the Create rule > Redirect Rule button by going to the Rules section, and then fill in other info as per below instructions:

I wish I knew this from earlier.

Comment via email