Available fields and functions
A URL rewrite rule filter expression (that is, the expression that defines which incoming requests match the rule) can include the following fields:
cf.edge.server_ipcf.edge.server_portcf.edge.client_portcf.zone.namecf.metal.idcf.ray_idcf.tls_client_auth.*http.cookiehttp.hosthttp.refererhttp.request.headershttp.request.headers.*http.request.accepted_languageshttp.request.methodhttp.request.timestamp.sechttp.request.timestamp.msechttp.request.full_urihttp.request.urihttp.request.uri.*http.request.versionraw.http.request.full_uriraw.http.request.uriraw.http.request.uri.*http.user_agenthttp.x_forwarded_forip.srcip.src.latip.src.lonip.src.asnumip.src.cityip.src.countryip.src.continentip.src.is_in_european_unionip.src.subdivision_1_iso_codeip.src.subdivision_2_iso_codessl
Refer to Fields for reference information on these fields.
For information on the available functions, refer to Functions.
A rewrite expression (that is, the expression that defines the dynamic URL rewrite to perform) can only include the following fields:
http.request.uri.*http.request.headers.*http.request.accepted_languages
Refer to the Fields reference for more information on these fields.
The concat(), regex_replace(), and wildcard_replace() functions can appear only once in a rewrite expression. Additionally, you cannot nest the regex_replace() and wildcard_replace() functions.
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Directory
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- © 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark