Cloudflare www dns record and redirect setup
Introduction
Now my digital garden is running with a custom domain I wanted to make the www subdomain point to the root domain.
How To
Nameservers
My domain is not registrered by Cloudflare but by another external hoster so I used the Cloudflare name servers. After Cloudflare took over the DNS records, I deleted the DNS records that still referred to the external hoster.
Cloudflare DNS
- 
Add a new CNAME record
- Go to 
DNSandRecordsand clickAdd record - Enter 
CNAMEasType - Enter 
wwwas theName - Enter 
fictionbecomesfact.comas theTarget - Leave 
Proxy statusonProxiedandTTLonAuto 
 - Go to 
 - 
Click on
Save 
Cloudflare Page Rule
- 
Add a new page rule
- Go to 
RulesandPage Rulesand clickCreate Page Rule - Enter your URL 
www.fictionbecomesfact.com/* - Enter these 
Settings:Forwarding URL302 - Temporary Redirecthttps://fictionbecomesfact.com/$1
 
 - Go to 
 - 
Click on
Save and Deploy Page Rule 
No comments found for this note.
Join the discussion for this note on Github. Comments appear on this page instantly.