Redirection (Page Rule) does not work


I have tried both:

Rules / Redirect Rules

  • Create Rule
  • Rule name: Redirection
  • All incoming requests
  • Type: Static
  • URL:
  • Status Code: 301
  • Deploy

Rules / Page Rules

Neither of both works.

I honestly don’t know what to do, as I have registered these domains with cloudflare,
but only want to redirect the traffic to another URL (my twitter account).

I tried one for a couple of days, than the other one.

Can someone tell me what I do wrong?

Btw, I have no DNS credentials whatoever.
(only the default Cloudflare Nameservers, which I cannot change).

You need to have a DNS record for the domain/subdomain you are redirecting from so the request resolves and goes to Cloudlfare.

Add a proxied dummy DNS record for www as A or AAAA 100:: as you are only redirecting.

If that doesn’t work, can you give the domain name and show a screenshot of your rules.


Ok, I have done so (added DNS).

Until now, nothing has changed.

Maybe it needs some time to progress, I don’t know.

What is the domain?

1 Like

Now I have a 522: Connection timed out error.

Has to do with the DNS ( proxied dummy DNS record for www as A!

Truly does not add up.

The domain is

There’s no DNS record for (the one you are doing the redirect rule for and should have entered the dummy DNS record for)

There is a DNS record for (this one you are not redirecting and is giving the 522 error).

Can you show a screenshot of your Cloudflare DNS records?


Here is the screenshot:

So yeah, www. works, without not.

Edit: ok, got it.

Created 2nd page rule for without www.

Huge Thanks!

I honestly didn’t know that you need to create a DNS dummy for that.

And I think this is nowhere mentioned in the docs / forum …

Now you’ve added the www record it resolves.

If you want to redirect both apex and www, then set the page rule URL to **

The redirect is now working…


Alright, with


I only need one page rule, right?..

Thanks again. :slightly_smiling_face: :+1:

Yes, that one rule will cover the apex domain and any subdomains. If you have other subdomains that you don’t want redirected, then you’ll need to have a rule for each of the apex domain and www so only those are redirected.