Page Rules migration guide·续3
Context:
You configured a Page Rule turning on Origin Error Page Pass-thru for all subdomains of example.com and the example.com domain itself:
- URL:
*example.com/* - Setting: Origin Error Page Pass-thru
- Value: On
How to migrate:
- Create a cache rule to determine edge cache behavior for any hostname containing
example.com: - When incoming requests match: Custom filter expression
- Using the Expression Builder:
Hostname contains "example.com" - Using the Expression Editor:
(http.host contains "example.com")
- Using the Expression Builder:
- Then:
- Cache eligibility: Eligible for cache
- Setting: Origin error page pass-thru
- Use Origin error page pass-thru: On
Caution
The default behavior of Cache Rules is different from Page Rules. Refer to Key differences for more information. 2. Turn off your existing Page Rule and validate the behavior of the cache rule you created. 3. If your tests succeed, delete the existing Page Rule.
| Page Rules configuration | Migrate to a cache rule |
|---|---|
![]() |
![]() |
Migrate Polish
Context:
You configured a Page Rule turning off Polish for all subdomains of example.com and the example.com domain itself:
- URL:
*example.com/* - Setting: Polish
- Value: Off
How to migrate:
- Create a configuration rule to turn off Polish for any hostname containing
example.com: - When incoming requests match: Custom filter expression
- Using the Expression Builder:
Hostname contains "example.com" - Using the Expression Editor:
(http.host contains "example.com")
- Using the Expression Builder:
- Then the settings are:
- Setting: Polish
- Select value: Off
- Turn off your existing Page Rule and validate the behavior of the configuration rule you created.
- If your tests succeed, delete the existing Page Rule.
| Page Rules configuration | Migrate to a configuration rule |
|---|---|
![]() |
![]() |
Migrate Query String Sort
Context:
You configured a Page Rule turning on Query String Sort for all subdomains of example.com and the example.com domain itself:
- URL:
*example.com/* - Setting: Query String Sort
- Value: On
How to migrate:
- Create a cache rule to sort query string parameters for caching purposes, for any hostname containing
example.com: - When incoming requests match: Custom filter expression
- Using the Expression Builder:
Hostname contains "example.com" - Using the Expression Editor:
(http.host contains "example.com")
- Using the Expression Builder:
- Then:
- Cache eligibility: Eligible for cache
- Setting: Cache key
- Sort query string: On
Caution
The default behavior of Cache Rules is different from Page Rules. Refer to Key differences for more information. 2. Turn off your existing Page Rule and validate the behavior of the cache rule you created. 3. If your tests succeed, delete the existing Page Rule.
| Page Rules configuration | Migrate to a cache rule |
|---|---|
![]() |
![]() |
Migrate Resolve Override
Context:
You configured a Page Rule changing the origin to example.saas-provider.com, for all requests addressed at any subdomain of example.com and the example.com domain itself:
- URL:
*example.com/* - Setting: Resolve Override
- Enter value:
example.saas-provider.com
How to migrate:
- Create an origin rule overriding the origin to
example.saas-provider.comfor any hostname containingexample.com: - When incoming requests match: Custom filter expression
- Using the Expression Builder:
Hostname contains "example.com" - Using the Expression Editor:
(http.host contains "example.com")
- Using the Expression Builder:
- Then:
- DNS Record > Override to:
example.saas-provider.com
- DNS Record > Override to:
- Turn off your existing Page Rule and validate the behavior of the origin rule you created.
- If your tests succeed, delete the existing Page Rule.
| Page Rules configuration | Migrate to an origin rule |
|---|---|
![]() |
![]() |
Migrate Respect Strong ETags
Context:
You configured a Page Rule turning on byte-for-byte equivalency checks for all subdomains of example.com and the example.com domain itself:
- URL:
*example.com/* - Setting: Respect Strong ETags
- Value: On
How to migrate:
- Create a cache rule to respect strong ETags for any hostname containing
example.com: - When incoming requests match: Custom filter expression
- Using the Expression Builder:
Hostname contains "example.com" - Using the Expression Editor:
(http.host contains "example.com")
- Using the Expression Builder:
- Then:
- Cache eligibility: Eligible for cache
- Setting: Respect strong ETags
- Use strong ETag headers: On
Caution
The default behavior of Cache Rules is different from Page Rules. Refer to Key differences for more information. 2. Turn off your existing Page Rule and validate the behavior of the cache rule you created. 3. If your tests succeed, delete the existing Page Rule.
| Page Rules configuration | Migrate to a cache rule |
|---|---|
![]() |
![]() |
Migrate Rocket Loader
Context:
You configured a Page Rule turning off Rocket Loader for all subdomains of example.com and the example.com domain itself:
- URL:
*example.com/* - Setting: Rocket Loader
- Value: Off
How to migrate:
- Create a configuration rule to turn off Rocket Loader for any hostname containing
example.com: - When incoming requests match: Custom filter expression
- Using the Expression Builder:
Hostname contains "example.com" - Using the Expression Editor:
(http.host contains "example.com")
- Using the Expression Builder:
- Then the settings are:
- Setting: Rocket Loader
- Value: Off
- Turn off your existing Page Rule and validate the behavior of the configuration rule you created.
- If your tests succeed, delete the existing Page Rule.
| Page Rules configuration | Migrate to a configuration rule |
|---|---|
![]() |
![]() |
Migrate Security Level
Context:
You configured a Page Rule setting Security Level to I'm Under Attack for all subdomains of example.com and the example.com domain itself:
- URL:
*example.com/* - Setting: Security Level
- Select Security Level: I'm Under Attack
How to migrate:
- Create a configuration rule to set Security Level to I'm Under Attack, for any hostname containing
example.com: - When incoming requests match: Custom filter expression
- Using the Expression Builder:
Hostname contains "example.com" - Using the Expression Editor:
(http.host contains "example.com")
- Using the Expression Builder:
- Then the settings are:
- Setting: I'm Under Attack
- Value: On
- Turn off your existing Page Rule and validate the behavior of the configuration rule you created.
- If your tests succeed, delete the existing Page Rule.
| Page Rules configuration | Migrate to a configuration rule |
|---|---|
![]() |
![]() |
Migrate True Client IP Header
Context:
You configured a Page Rule adding a True-Client-IP HTTP header for all requests addressed at any subdomain of example.com and the example.com domain itself:
- URL:
*example.com/* - Setting: True Client IP Header
- Value: On
How to migrate:
- Turn on the Add "True-Client-IP" header Managed Transform — a Transform Rules feature — to add the
True-Client-IPheader to all requests. - Turn off your existing Page Rule and validate the behavior of the Managed Transform.
- If your tests succeed, delete the existing Page Rule.
| Page Rules configuration | Migrate to a Managed Transform |
|---|---|
![]() |
![]() |
Migrate SSL
Context:
You configured a Page Rule setting SSL to Strict for all subdomains of example.com and the example.com domain itself:
- URL:
*example.com/* - Setting: SSL
- Select SSL/TLS encryption mode: Strict
How to migrate:
- Create a configuration rule to set SSL to Strict, for any hostname containing
example.com: - When incoming requests match: Custom filter expression
- Using the Expression Builder:
Hostname contains "example.com" - Using the Expression Editor:
(http.host contains "example.com")
- Using the Expression Builder:
- Then the settings are:
- Setting: SSL
- Select SSL/TLS encryption mode: Strict
- Turn off your existing Page Rule and validate the behavior of the configuration rule you created.
- If your tests succeed, delete the existing Page Rule.
| Page Rules configuration | Migrate to a configuration rule |
|---|---|
![]() |
![]() |
Settings that will not be migrated
The following Page Rules settings will not be migrated to other types of rules:
- Disable Performance (this setting is deprecated)
- Disable Railgun (this setting is deprecated, since Railgun is no longer available)
- Disable Security (this setting is deprecated)
- Response Buffering (this setting is deprecated)
- Web Application Firewall (this setting is deprecated, since the previous version of WAF managed rules is deprecated)
All other Page Rules settings will be migrated during 2025.
More resources
If you have feedback to share, refer to our Community thread ↗︎.
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/rules/reference/page-rules-migration/#page","headline":"Page Rules migration guide","description":"Migrate from Page Rules to modern Cloudflare Rules alternatives.","url":"https://developers.cloudflare.com/rules/reference/page-rules-migration/","inLanguage":"en","image":"https://developers.cloudflare.com/rules/reference/page-rules-migration/og.png?v=222e17aa1267d01c","dateModified":"2026-04-16","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Review common troubleshooting scenarios for Rules features. title: Troubleshoot Rules image: https://developers.cloudflare.com/rules/reference/troubleshooting/og.png?v=cee08de0fe3e2050
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/rules/llms.txt
Use this file to discover all available pages before exploring further.

