Redirect WWW to apex with workers?
I added custom domain to my worker, but www.mydomain doesnt work how to set it up?

4 Replies
@Konrad the www. doesn't work? or the redirect from www. to the apex doesn't work?
just trying to clarify, I was setting up something recently so I may be able to help.
If you just want to do a simple redirect you don't need Workers, you can use
You can use
https://developers.cloudflare.com/pages/how-to/www-redirect/ to do it with bulk redirects
or
https://community.cloudflare.com/t/redirect-www-example-com-to-example-com-using-single-dynamic-redirects/636764/2 to do it with dynamic redirects. Up to you.
yeah I set up bulk redirect but it still cannot resolve it
do I need to add www CNAME record that points to main domain without www?
www at all doesnt work
add
AAAA
www
100::
Proxied
100:: is Ipv6 discard, basically "if you don't hit a rule and get to the connecting to an origin part, give up"