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:

  1. Create a cache rule to determine edge cache behavior for any hostname containing example.com:
  2. When incoming requests match: Custom filter expression
    • Using the Expression Builder:
      Hostname contains "example.com"
    • Using the Expression Editor:
      (http.host contains "example.com")
  3. 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
Example Page Rule with 'Origin Error Page Pass-thru' setting Cache rule matching the 'Origin Error Page Pass-thru > On' setting of the example Page 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:

  1. Create a configuration rule to turn off Polish for any hostname containing example.com:
  2. When incoming requests match: Custom filter expression
    • Using the Expression Builder:
      Hostname contains "example.com"
    • Using the Expression Editor:
      (http.host contains "example.com")
  3. Then the settings are:
    • Setting: Polish
    • Select value: Off
  4. Turn off your existing Page Rule and validate the behavior of the configuration rule you created.
  5. If your tests succeed, delete the existing Page Rule.
Page Rules configuration Migrate to a configuration rule
Example Page Rule with 'Polish' setting Configuration rule matching the 'Polish > Off' setting of the example Page 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:

  1. Create a cache rule to sort query string parameters for caching purposes, for any hostname containing example.com:
  2. When incoming requests match: Custom filter expression
    • Using the Expression Builder:
      Hostname contains "example.com"
    • Using the Expression Editor:
      (http.host contains "example.com")
  3. 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
Example Page Rule with 'Query String Sort' setting Cache rule matching the 'Query String Sort > On' setting of the example Page 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:

  1. Create an origin rule overriding the origin to example.saas-provider.com for any hostname containing example.com:
  2. When incoming requests match: Custom filter expression
    • Using the Expression Builder:
      Hostname contains "example.com"
    • Using the Expression Editor:
      (http.host contains "example.com")
  3. Then:
    • DNS Record > Override to: example.saas-provider.com
  4. Turn off your existing Page Rule and validate the behavior of the origin rule you created.
  5. If your tests succeed, delete the existing Page Rule.
Page Rules configuration Migrate to an origin rule
Example Page Rule with 'Resolve Override' setting Origin rule matching the 'Resolve Override' setting of the example Page 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:

  1. Create a cache rule to respect strong ETags for any hostname containing example.com:
  2. When incoming requests match: Custom filter expression
    • Using the Expression Builder:
      Hostname contains "example.com"
    • Using the Expression Editor:
      (http.host contains "example.com")
  3. 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
Example Page Rule with 'Respect Strong ETags' setting Cache rule matching the 'Respect Strong ETags > On' setting of the example Page 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:

  1. Create a configuration rule to turn off Rocket Loader for any hostname containing example.com:
  2. When incoming requests match: Custom filter expression
    • Using the Expression Builder:
      Hostname contains "example.com"
    • Using the Expression Editor:
      (http.host contains "example.com")
  3. Then the settings are:
    • Setting: Rocket Loader
    • Value: Off
  4. Turn off your existing Page Rule and validate the behavior of the configuration rule you created.
  5. If your tests succeed, delete the existing Page Rule.
Page Rules configuration Migrate to a configuration rule
Example Page Rule with 'Rocket Loader' setting Configuration rule matching the 'Rocket Loader > Off' setting of the example Page 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:

  1. Create a configuration rule to set Security Level to I'm Under Attack, for any hostname containing example.com:
  2. When incoming requests match: Custom filter expression
    • Using the Expression Builder:
      Hostname contains "example.com"
    • Using the Expression Editor:
      (http.host contains "example.com")
  3. Then the settings are:
    • Setting: I'm Under Attack
    • Value: On
  4. Turn off your existing Page Rule and validate the behavior of the configuration rule you created.
  5. If your tests succeed, delete the existing Page Rule.
Page Rules configuration Migrate to a configuration rule
Example Page Rule with 'Security Level' setting Configuration rule matching the "Security Level > I'm Under Attack" setting of the example Page 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:

  1. Turn on the Add "True-Client-IP" header Managed Transform — a Transform Rules feature — to add the True-Client-IP header to all requests.
  2. Turn off your existing Page Rule and validate the behavior of the Managed Transform.
  3. If your tests succeed, delete the existing Page Rule.
Page Rules configuration Migrate to a Managed Transform
Example Page Rule with 'True Client IP Header' setting The 'Add "True-Client-IP" header' Managed Transform matching the 'True Client IP Header' setting of the example Page Rule

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:

  1. Create a configuration rule to set SSL to Strict, for any hostname containing example.com:
  2. When incoming requests match: Custom filter expression
    • Using the Expression Builder:
      Hostname contains "example.com"
    • Using the Expression Editor:
      (http.host contains "example.com")
  3. Then the settings are:
    • Setting: SSL
    • Select SSL/TLS encryption mode: Strict
  4. Turn off your existing Page Rule and validate the behavior of the configuration rule you created.
  5. If your tests succeed, delete the existing Page Rule.
Page Rules configuration Migrate to a configuration rule
Example Page Rule with 'SSL' setting Configuration rule matching the "SSL" setting of the example Page 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

Page Rules migration guide·续3 - 图19Docs

{"@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


Skip to content

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.