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
DNS
andRecords
and clickAdd record
- Enter
CNAME
asType
- Enter
www
as theName
- Enter
fictionbecomesfact.com
as theTarget
- Leave
Proxy status
onProxied
andTTL
onAuto
- Go to
-
Click on
Save
Cloudflare Page Rule
-
Add a new page rule
- Go to
Rules
andPage Rules
and clickCreate Page Rule
- Enter your URL
www.fictionbecomesfact.com/*
- Enter these
Settings
:Forwarding URL
302 - Temporary Redirect
https://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.