⚠️ This document is outdated. Please refer to the Custom Domain article instead.
You can now add a redirect from your root domain to the www subdomain by clicking "Add Redirect" on the Custom Domain settings page in your Typedream dashboard.
Last edited on July 13, 2021
CLOUDFLARE
There are 2 redirection options that we will cover in this tutorial. Please go to the one that is relevant to you:
Redirect example.com
→ www.example.com
Do this if you connected www.example.com
to Typedream
Jump to tutorial →
Redirect www.example.com
→ example.com
Do this if you connected example.com
to Typedream
Jump to tutorial →
example.com
→ www.example.com
If you have connected www.example.com to Typedream by adding a CNAME like the following:
Type
CNAME
Name
www
Value
render-36alh.ondigitalocean.app
(this may be different for you)
Then you might need to redirect your root domain example.com
to your connected www subdomain www.example.com
so that both domains would serve your Typedream site.
What you need to do is add the following
1. Add Forwarding in Rules
Go to the Rules tab, then add a forwarding rule
From: example.com/*
Settings: Forwarding URL - 301 Permanent Redirect
To: https://www.example.com/$1
2. Add a DNS Record to proxy requests to Cloudflare
Go to the DNS Tab, and add a DNS Record:
Type: AAAA
Name: @
Content: 100::
TTL: Auto
Proxy status: Proxied
Done! You should now check if going to https://example.com
redirects you to https://www.example.com
.
www.example.com
→ example.com
If you have connected www.example.com to Typedream by adding an A record like the following:
Type
A
Name
@
Value
76.76.21.21
(this may be different for you)
Then you might need to redirect your www subdomain www.example.com
to your connected root domain example.com
so that both domains would serve your Typedream site.
What you need to do is add the following
1. Add Forwarding in Rules
Go to the Rules tab, then add a forwarding rule
From: www.example.com/*
Settings: Forwarding URL - 301 Permanent Redirect
To: https://example.com/$1
2. Add a DNS Record to proxy requests to Cloudflare
Go to the DNS Tab, and add a DNS Record:
Type: AAAA
Name: www
Content: 100::
TTL: Auto
Proxy status: Proxied
Done! You should now check if going to https://www.example.com
redirects you to https://example.com
.
Configuring URL forwarding or redirects with Cloudflare Page Rules →
Reach out to us by clicking on Help & Resources at the bottom-left corner of the editor for help.
We're a remote software company, building online tools for creators, builders, and side hustlers. We quit our 9-5 to pursue our dreams, and we want to help others do the same.
Backed by
Copyright © 2024 beehiiv, Inc. All rights reserved.