Set a default domain that redirects all traffic to a specific domain.
The default domain is the domain you want to redirect other domains to. These other domains can be your old domains (to redirect www.oldsite.com to www.newsite.com) or variations of your new domain — a simple example is redirecting your root domain (newsite.com) to your full domain (www.newsite.com).
In this lesson:
A root domain is the domain you purchase from a registrar. It is the simplest form of your domains URL: domain.com or domain.net or domain.biz.us.
A subdomain is the part in front of the root domain like the "www" in front of www.domain.com or the word "blog" in front of blog.domain.net.
A default domain is where you want someone to end up regardless of what they type in the address bar of their browser. If you set the WWW version as your default, that means visiting domain.com will take you to www.domain.com.
First, make sure you've added and connected all your domains in your Projects settings. Learn how to connect your domains.
If you've connected more than one domain, you'll need to set a default domain to redirect all traffic from the other domains to this default one. This is super helpful to avoid SEO issues due to duplicate content.
Go to the Custom domain section of your project’s Hosting settings and click make default next to the domain you want to set as the default domain.
The default domain on SSL must be served on a domain that has a CNAME record. So, most probably, you'll need to set the full domain (www.yourdomain.com) as the default domain. To set the root domain as the default, check Setting the root domain as the default domain.
If you've set the incorrect domain as the default domain, when you visit your domain, you'll see the ERR_TOO_MANY_REDIRECTS error. To fix this issue, make sure to set the full domain (www.domain.com) as the default domain and republish your site.
Setting a default domain is also a great way to redirect any old domain names to new ones. Just connect all your domains, old and new, and then set one of the new domains as the default domain and publish to the default domain.
Something went wrong while submitting the form. Please contact firstname.lastname@example.org