Subdomain Redirection for `/blog` Not Working
Hello Cloudflare Support,
I have configured a Cloudflare Worker to handle redirection for a subdomain.
The intended behavior is to redirect all requests to the
However, the redirection is not working as expected, and requests to the
Here are the details of my setup:
Thank you!
I have configured a Cloudflare Worker to handle redirection for a subdomain.
The intended behavior is to redirect all requests to the
/blog path on the main domain to the corresponding subdomain (e.g., picsht.com/blog → blog.picsht.com).However, the redirection is not working as expected, and requests to the
/blog path are not being redirected to the subdomain.Here are the details of my setup:
- Worker Script: The script is configured to intercept requests to `/blog` and replace the domain with the subdomain `blog.picsht.com`.
- Worker Route: The route `*picsht.com/blog*` is set up to handle these requests.
- Expected Behavior: Requests to
picsht.com/blogorpicsht.com/blog/some-postshould redirect toblog.picsht.comorblog.picsht.com/some-post. - Issue Observed: The redirection does not occur, and the request stays on the main domain.
Thank you!

