I currently have a Page Rule like the following:
URL: www.example.com/*
Pick a Setting: Forwarding URL
Select status code: 301 - Permanent Redirect
Enter destination URL: https://example.com/$1
This essentially strips the www. from the domain but maintains all other parts of it.
I would like to migrate the rule to the new Dynamic Redirects package as I noted that Cloudflare indicates they expect to eventually decommission the Page Rules. I am running into a bit of an issue with what the proper format for the destination Expression is.
When incoming requests match…
Field: Hostname
Operator: equals
Value: www.example.com
Then…
Type: Dynamic
Expression:
Status code: 301
Preserve query string: checked
I couldn’t find anything in the docs to assist with this issue.