Carl Youngblood
CDCloudflare Developers
•Created by Carl Youngblood on 8/13/2023 in #general-help
Page rule not redirecting all traffic as expected
I'm trying to create a page rule that redirects all domain traffic to a subdomain on the same domain. This is for putting my site in maintenance mode. I have a worker that returns a static page announcing the site is down for maintenance.
I've tried setting the URL to domain.org/* and the forwarding url to https://maintenance.domain.org (where the worker is running), but the rule doesn't seem to do anything. The app is still showing normally, instead of redirecting to the worker as hoped. Any help would be greatly appreciated.
6 replies