Rules not working, what am I doing wrong?

Hey, I am starting feeling stupid :joy:

I want to create a redirect rule on Cloudflare.

Goal: redirect every traffic from Histack.iohttps://www.Histack.io

The current rule:

Does anyone have any idea what I am doing wrong here?

Remove the “URL Full” part of the rule, wildcards are used by Page Rules and not Redirect Rules. The hostname test will be enough.

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

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

If you want the redirect to include the path, use a “dynamic” rule, copy this example…

2 Likes

Bäm! The dummy DNS brought the magic. I deleted the URL Full aswell.

Thanks for the dynamic rule. I tried several things, but guess the dummy A did it.

Thanks a lot! :slight_smile:

1 Like

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