Skip to content
ferkesh.HOSTING

Find Which Cloudflare Redirect Rule Handles a URL

Domains and DNS 53 次浏览 Markdown

A Cloudflare redirect and an application redirect can yield similar responses. A request might match an earlier terminating rule and never reach the later rule or the origin. Record the exact host, path and scheme before changing anything.

Exact URL: Host, path, scheme; Rule match: Edge or origin; First response: Status + Location.

Build a short expected matrix

For your own proxied domain, choose the exact redirecting URL, a request that must not redirect and a query string whose handling matters. Record the expected status and Location. Do not test by adding broad redirects to production. If a hostname is DNS-only, your request does not pass through that domain's Cloudflare HTTP rules.

Compare requests to rule scope

Inspect Single Redirects and Bulk Redirects and read their configured match expressions and order. Use Cloudflare Trace when available for the applicable property. Compare the first browser response without following redirects, then inspect subsequent hops separately. Check any origin-level redirect in an authorized preview or staging setup.

Rehearse the correction

Match the narrowest intended host and path and consider query preservation explicitly. Verify that the target is outside any rule that would send it back. Retest the matrix and one mobile or alternative browser session if cookies or cached redirects affect what you see. Preserve the prior rule and record a reversal route.

Official references

Last reviewed .

这对您有帮助吗?

感谢您的反馈!

仍需帮助?

如果知识库未能解答您的问题,支持团队全天候为您服务。