Repository navigation
Worker custom domains cannot declare redirect hosts (www to apex) #16985
workers-devprod
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Moved from #16117. Originally opened by kenwongkaien on 2026-09-29.
Problem
A Worker's custom-domain triggers attach hostnames, but they cannot declare a redirect host, such as
www.example.comanswering 301 to the apex before the Worker runs. That needs a Single Redirect rule in the zone'shttp_request_dynamic_redirectphase, managed outside the config. Other tools model this as part of the Worker's domain config (name, aliases, redirects).Expected
A way to declare redirect hostnames for a Worker's custom domains, applied and kept in step by
cf deploy.Environment
cf@1.0.0-beta.5,@cloudflare/config@0.20.0.All reactions