Redirect domain non-www to www with cloudflare page rules

  • This page rule will redirect as per the following examples:
http://example.com > https://www.example.com
https://example.com > https://www.example.com
example.com/page > https://www.example.com/page

Create page rule for redirect from non-www to www

alt text

DNS config ip www and non-ww to ip public server or ingress

alt text alt text