INTEGRITY Cloudflare Docs

URL Rewrite Rules

You can manipulate the URL of a request through different operations, namely rewrites and redirects:

Use a URL rewrite rule to return the content of a URL while displaying a different URL in the browser. You can rewrite the URI path, the query string, or both.

Static and dynamic rewrites

URL Rewrite Rules can perform static or dynamic rewrites:

Create URL Rewrite Rules in the dashboard, via Cloudflare API, or using Terraform.

Serve images from custom paths

When using Cloudflare Images, you can use URL Rewrite Rules to serve images from a custom path. For more information, refer to Serve images from custom domains.

Troubleshooting

When troubleshooting URL Rewrite Rules, use Cloudflare Trace to determine if a rule is triggering for a specific URL.

Important remarks