Use Page Rules but I don't have actual web site for root domain

Cloudflare is my domain name server and I’m only using my domain for email, so I have MX records set up but nothing else.

I’d like to use Page Rules to do some redirect, but is this even possible?

i.e.
If I go to myDomain.com, I should go “nowhere”, since there’s no web site set up.
But if I go to either subdomain.myDomain.com, or myDomain.com/anotherPlace, I’d like to redirect to someOtherDomain.com/whatever

The idea is to set up an easy to remember url for my parents to use to take them to a Google Doc that’s a “here’s how to troubleshoot stuff” page.

Is there a way to do this? It seems like I have to set up a CNAME and/or A record for the root domain, but what do I point that to?

Here’s a tutorial on that. Basically, you create a placeholder DNS entry that’s Proxied (:orange:) and then add Page Rules (You only get three on the free plan) that forward the Matched URL to its destination.

1 Like

Ah, that was easy. The 192.0.2.1 part was the part I couldn’t figure out. I originally tried 192.168.0.1 and 127.0.0.1 and Cloudflare wouldn’t accept that. Thanks!

1 Like

For me, I’ll use CNAME record to point to a non-existent domain. But yeah, either way works.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.