Redirect Rule Not Working (Domain, Proxy, without effecting Subdomains)
Hello! I am hoping someone would be so kind as to point me in the right direction. I am trying to configure a redirect rule that will not effect my subdomains. I would like the main domain to reedict to a different url and the subdomains to be unaffected. I am using the subdomains as part of a configuration on another platform.
Below is the current setup. I am not very knowledgeable about redirect rules, so please don't judge too harshly...
(http.request.full_uri eq "https://eclipsevolleyballperformanceclub.com/") or (http.request.full_uri eq "https://eclipsevolleyballperformanceclub.com") or (http.request.full_uri eq "eclipsevolleyballperformanceclub.com/") or (http.request.full_uri eq "eclipsevolleyballperformanceclub.com")
19 Replies
If you just wanted to redirect the entire main domain/all paths/not any subdomains, you can just do http.host eq, like
oop I clipped the "e" from the start, you get the idea though, hostname eq matches all request to that hostname, ex:
https://eclipsevolleyballperformanceclub.com/
but not https://subdomain.eclipsevolleyballperformanceclub.com/
Thanks @Chaika , but no dice... so far
what's the full redirect rule?
oops
remove trailing slash
one sec
looks ok. What's your apex (
eclipsevolleyballperformanceclub.com
) pointing to? Render.com or some cf partner?Forgive my ignorance... I din't undertand what " apex (eclipsevolleyballperformanceclub.com) pointing to? Render.com or some cf partner?"
what that means
What service is the host for it/what dns records exist for it?
what dns exists for the apex?
let me share a screenshot of the dns setting
and you just want to redirect the entire apex/
eclipsevolleyballperformanceclub.com
right? If so, delete the proxied A record on top and replace w/ AAAA
@
100::
Proxied
ok
looks like it's working now, redirected me fine
You were using a Cloudflare Partner before which was using a Cloudflare product called Cloudflare For SaaS, when setup like that on your apex, with A/AAAA records, it doesn't run your own configurations at all. By replacing the record you removed the connection,
100::
is IPv6 Discard "anything sent to this IP goes no where", just needed a proxied record for the traffic to flow to CloudflareTHANK YOU