- Sign up for a Cloudflare account
- Add your domain.
- Update your DNS records. Replace
example.com
with your domain.
Type Name Value Proxy Status A @ 192.0.2.0 Proxied CNAME www example.com Proxied - Update your domain nameservers with Cloudflare’s
- Under the “SSL/TLS” menu, select
Flexible
- Under the “Page Rules” menu, create a page rule with the following pattern:
*example.com/*
Select Forwarding URL, your status code choice and the destination URL under the settings.
This should cover all of the following combinations:
- http://example.com
- http://www.example.com
- https://example.com
- https://www.example.com