What is the name of the domain?
example com
What is the issue you’re encountering
We’ve set up a Redirect Rule in Cloudflare to redirect all requests from https://example.com/s/*
to https://subdomain.example.com/s/${1}
using a 301 permanent redirect. Despite following all the correct steps (wildcard pattern, proxy enabled, rule at top of list, preserve query string checked), the rule is completely ignored. Testing via https://httpstatus.io confirms that the URL loads the original app instead — no redirect happens. We also tested by redirecting to https://example.com to isolate the issue — still no result. It appears Cloudflare’s redirect engine is not triggering for path-based rules despite proper config.
What steps have you taken to resolve the issue?
- Set up 3 separate Redirect Rules:
- Ensured proxy is enabled (orange cloud)
- Tested in incognito mode and via https://httpstatus.io
- Moved rule to the top of the stack
- Confirmed
${1}
is used correctly for the wildcard - Disabled broader domain-wide redirect rules temporarily
- Attempted redirect to https://example.com as a test (no result)
What are the steps to reproduce the issue?
- Create a Redirect Rule with:
- Source: https://example.com/s/*
- Target: https://subdomain.example.com/s/${1}
- 301 Permanent, preserve query string
- Enable proxy on DNS for example.com
- Try visiting https://example.com/s/abc123
- Observe that no redirect occurs