Best Cloudflare redirect setup
May 4, 2021
- Enable “Always Use HTTPS”
- Add a
www
CNAME to house your site as DNS-only - Add an A record for
xyz.com
that points to192.0.2.1
as proxied - Under “Rules” create a new rule for
xyz.com/*
set it as a 301 forwarding URL tohttps://www.xyz.com/$1
.