Redirect WWW to apex with workers?

I added custom domain to my worker, but www.mydomain doesnt work how to set it up?
No description
4 Replies
LordNikon
LordNikon4mo ago
@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.
Chaika
Chaika4mo ago
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.
Konrad
KonradOP4mo ago
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
Chaika
Chaika4mo ago
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"

Did you find this page helpful?