Redirect Page Rule Not Working
Hey,
So I could be completely wrong here in how I'm trying to achieve my goal. I've read several pages on the help center and have not been able to solve my issue.
I'm trying to redirect my entire domain to an external URL under 302. I am currently trying to use page rules as directed (https://developers.cloudflare.com/rules/page-rules/how-to/url-forwarding/) but I may be doing something wrong.
At the moment I haven't really changed anything in the configuration so I may have missed something. Currently when trying to visit the domain it does nothing, I've tested subdomains and paths to see if that triggers the catch-all.
Thanks!
Cloudflare Docs
URL forwarding | Page Rules · Cloudflare Rules docs
Page Rules allow you to forward or redirect traffic to a different URL, though they are just one of the options provided by Cloudflare.
8 Replies
Currently when trying to visit the domain it does nothing,what is "nothing"? what error?
Apologies, forgot to attach a screenshot:
ahh ok. It looks like you didn't make originless records. You need a proxied DNS Record to get the traffic flowing to Cloudflare. Cloudflare recommends
100::
(IPv6 Discard). Under DNS -> Records, create
AAAA
*
100::
Proxied
and AAAA
@
100::
Proxied
, then just wait for DNS Cache to expireSo unless I need to set some base DNS records for it to work off of?
I see, thank you! I'll give that a go
(it doesn't matter these are IPv6/only AAAA, since they're proxied, CF will respond with A/AAAA Proxy IPs on edge accepting both v4/v6)
Thanks! I'll wait and see once it updates
looks good to me now
Might have local dns cache on your machine/resolver tho that you'll have to wait to expire/manually clear/switch
Thanks! Yeah I'm just waiting for it to expire at the moment, might clear manually if it takes a while
Ah it just worked. ty!