Set a default domain that redirects all traffic to a specific domain.
Note: We're transitioning to Workspaces, and are in the process of updating our content. Visit the blog post to read more about these updates and changes.
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, you’ll learn:
There are a few terms you should know for this lesson:
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:
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.
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.
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.