301 redirect in Deployments

Workaround for anyone needing www 301 to non-www. Use Cloudflare, proxy the www only if you prefer the non-www. Set a CNAME to www and point to root domain. Then go to Rules and use the built in www to non-www redirect rule Redirect from WWW to root · Cloudflare Rules docs