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).
Before you get started: Connect your custom domain and set your DNS records with your domain registrar or DNS provider. Learn more about connecting a custom domain.
In this lesson, you’ll learn:
- How to set a default domain
- How to fix the ERR_TOO_MANY_REDIRECTS error
- How to redirect your old domain to a new domain
There are a few terms you should know for this lesson:
- Root domain — the domain you purchase from a registrar (e.g., domain.com, domain.net, etc.)
- Subdomain — the part in front of the root domain like the “www” in www.domain.com or the word “blog” in blog.domain.net
- Default domain — the domain where you’d like to redirect your site traffic. For example, if you set the www subdomain (e.g., www.domain.com) as your default, site visitors who enter domain.com in the address bar of their browser will be redirected to www.domain.com.
How to set a default domain
First, make sure you’ve connected all of your custom domains in Site settings > Publishing tab > Custom domains. Learn more about connecting a custom domain.
If you’ve connected more than one domain to your site, you’ll need to set a default domain to redirect all traffic from the other domains to the default. This helps to avoid SEO penalties due to duplicate content.
To set the default domain:
- Open Site settings > Publishing tab > Custom domains
- Hover over the domain you’d like to set as the default and click Make default
Important: Your default domain should be set to the www subdomain. If you’d like to connect only the www subdomain (e.g., www.yourdomain.com) or another subdomain to your Webflow site, check out our lesson on connecting a subdomain. Redirecting traffic to the root domain (e.g., yourdomain.com) requires a slightly different setup for your DNS records. Learn more about setting the root domain as the default domain on SSL hosting.
How to fix the ERR_TOO_MANY_REDIRECTS error
The default domain on SSL must be served on a domain that has a CNAME record. Many domain registrars and DNS providers don’t offer CNAME flattening, so you’ll likely need to set the www subdomain (e.g., www.yourdomain.com) as the default domain.
Redirecting site traffic to the root domain (e.g., yourdomain.com) requires a slightly different setup for your DNS records. Learn more about setting the root domain as the default domain on SSL hosting.
If you’ve set the incorrect domain as the default, site visitors will hit the ERR_TOO_MANY_REDIRECTS error when visiting your site. To fix this issue, set the www subdomain (e.g., www.yourdomain.com) as the default domain and republish your site. Learn more about the too many redirects error.
How to 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. To do this, connect all your domains, old and new, and then set one of the new domains as the default and publish to the default domain.