Redirect Rules not working

I have set up 2 redirect rules with the same scheme as on my other domain but it isn't working. Has anyone an idea? Here a screenshot of one rule - the other one is the same but with another path-ending
No description
21 Replies
Chaika
Chaika•4mo ago
Is the DNS Record Proxied? What's the specific error you get, it just doesn't match?
LukeZ
LukeZ•4mo ago
I dont get any error and the which DNS record?
Chaika
Chaika•4mo ago
The one for the hostname you want the DNS Redirects to work on if you wanted them to work on your apex, it'd be the one for the name of your site
LukeZ
LukeZ•4mo ago
The DNS address of easysecurity.app was not found. A problem diagnosis is performed.
DNS_PROBE_POSSIBLE that doesnt matter 😅
Chaika
Chaika•4mo ago
Do you have any origin you want to use for easysecurity.app, or just using it for redirects?
LukeZ
LukeZ•4mo ago
the 2nd
Chaika
Chaika•4mo ago
Then create AAAA @ 100:: Proxied 100:: is IPv6 Discard, saying if nothing in CF handles it, don't contact any origin. You need a Proxied DNS for that hostname created so the traffic flows to CF so that the rule can match and work
LukeZ
LukeZ•4mo ago
oh. wow. Okay, let me check something
LukeZ
LukeZ•4mo ago
See, I have the same setup with my other domain (but I've purchased it somewhere else) and it does in fact work. but... The only proxied record there is something I might have done in order to make it work with the external domain provider. (Where I purchased the domain)
No description
No description
Chaika
Chaika•4mo ago
It can be any proxied record. Just having a proxied record means it's going to flow to CF and potentially match a redirect rule The reason why CF recommends 100:: is because it's very clear to you in the future that there's no real origin there, and if your rule doesn't match the traffic doesn't go anywhere
LukeZ
LukeZ•4mo ago
aaah! Then I have another question. Might it be possible that I just develop my own site and then redirect the user just with a script instead of using CF?
Chaika
Chaika•4mo ago
You mean a script on your origin server/a script in the js served by your origin to do the redirect?
LukeZ
LukeZ•4mo ago
yes
Chaika
Chaika•4mo ago
Sure but why? CF Redirects are going to be faster then anything you do. All of Cloudflare's 250+ cities have the redirect sitting there, super fast ttfb. Additionally JS Redirects can cause some issues with non-browser clients, better to use a normal http redirect if you can
LukeZ
LukeZ•4mo ago
ah okay, makes sense
LukeZ
LukeZ•4mo ago
I got this now. Is that correct?
No description
Chaika
Chaika•4mo ago
yea then just waiting for dns cache/propagation
Chaika
Chaika•4mo ago
No description
LukeZ
LukeZ•4mo ago
ah, insomnia :dogekek: well, it took a while when I configured the other domain so I will go for a few hours now. Thank you ^^
Chaika
Chaika•4mo ago
Yea it's because you tried visiting it first when the record wasn't there. Negative DNS Cache is for an hour by default and depending on your DNS Resolver (some ISP Resolvers override ttl), it could be even longer
LukeZ
LukeZ•4mo ago
oh wow 💀 yay, it got it ^^
Want results from more Discord servers?
Add your server
More Posts