-
+1. [Create a configuration rule](/rules/configuration-rules/create-dashboard/) to always rewrite HTTP links to HTTPS 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:
+ - **When incoming requests match**: Custom filter expression
+ - Using the Expression Builder:
+ `Hostname contains "example.com"`
+ - Using the Expression Editor:
`(http.host contains "example.com")`
-- **Then the settings are**:
- - **Setting**: Automatic HTTPS Rewrites
- - **Value**: On
-
-
+ - **Then the settings are**:
+ - **Setting**: Automatic HTTPS Rewrites
+ - **Value**: On
2. Turn off your existing Page Rule and validate the behavior of the configuration rule you created.
3. If your tests succeed, delete the existing Page Rule.
+
+