Set a default domain

The UI in this lesson may seem different if you've enables the Style Panel Beta! This content will be updated soon!
This video features an old UI. Updated version coming soon!
This video features an old UI. Updated version coming soon!
Set a default 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).

Glossary

Root domain

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.

Subdomain

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.

Default domain

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.

Set a default domain

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.

Make a domain the default domain.

Fix the ERR_TOO_MANY_REDIRECTS error

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.

Redirect your old domain to a new domain

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.

Browser support

Can I Use ? Data on support for the feature across the major browsers from caniuse.com.

Was this helpful?
OR

Thanks for the feedback! If you can, please add additional feedback below.

Oops! Something went wrong while submitting the form

Thank you! Your feedback has been received!

Oops! Something went wrong while submitting the form