Skip to content
Domains & URLs

Connect your domain to HubSpot

Last updated: September 19, 2022

Applies to:

All products and plans

Connect your website domain to HubSpot to publish your content on HubSpot-hosted website, landing, or blog pages. The type of content that you can publish to your domain depends on your HubSpot subscription.  

Before you get started

  • To connect your domain, you will need to update your DNS records.  Ensure you have login details for your DNS provider and access to the CNAME records. 
  • If you're moving a live website to HubSpot, review the domain verification process if you want to pre-provision SSL for the domain
  • A subdomain can only host pages in a single location. If you connect a subdomain to HubSpot that is currently hosting external pages, links to those external pages will break. To host pages in multiple locations, such as HubSpot and WordPress, use a separate subdomain for each provider. 

Connect a new domain

  • In your HubSpot account, click the settings settings icon in the main navigation bar.
  • In the left sidebar menu, navigate to Website > Domains & URLs.
  • Click Connect a domain.
  • Select the type of domain you want to connect:
    • Primary: the subdomain will be the default host for the selected content types in HubSpot.
    • Secondary: the subdomain can host HubSpot content, but will not be set as the default for your content (Marketing Hub Professional and Enterprise, CMS Hub Professional and Enterprise only).
    • Redirect: this subdomain can't be used to host content, but will automatically redirect to another domain connected to HubSpot.
    • Email Sending: the subdomain will add another layer of authentication to your HubSpot emails. Learn more about how to connect an email sending domain.
  • Click Connect.
connect-primary-domain
  • Select the checkbox next to each content type you will host on this domain, then click Next.
    select-content-types-for-domain

Please note: the Email content type is used for the web version, image, and subscription preferences page URLs of your marketing emails. This is separate from the email sending domain, which is used to authenticate the From address used to send your marketing emails. Learn how to connect an email sending domain.

  • Enter your domain, then click Next

domain-manager-enter-domain-name

  • Set up the four components of your domain:
    • Subdomain: the subdomain is the first part of the domain name. For example, in blog.mywebsite.com, blog is the subdomain. Leave this field blank to connect and host content on the root domain.
    • Brand domain: the brand domain, otherwise known as the domain name, is between the subdomain and the top-level domain. For example, in blog.mywebsite.commywebsite is the brand domain. If you are connecting a domain for the first time, this domain will be set as your account's brand domain. Learn more about brand domains.
    • Top-level domain: the top-level domain comes after the brand domain. For example, in blog.mywebsite.com.com is the top-level domain.
    • Primary language: the primary language helps search engines understand the language of your page content for the subdomain. Learn more about managing multi-language content.

domain-connect-verify-urls
  • In the bottom right, click Next.

For the next step of the process, you'll need to log in to your DNS provider to access your DNS records. If you don't have access or are unsure how to do this, reach out to your IT team or contact your DNS provider directly.

For detailed instructions on editing your DNS records for the most common DNS providers, check out the DNS setup guide

  • If you use GoDaddy, click Update my CNAME. You'll then be prompted to log in to your GoDaddy account. This allows HubSpot to access your GoDaddy account and automatically update the CNAME record for the domain.
  • If you use IONOS, click Authorize with IONOS. You'll then be prompted to log in to your IONOS account. This allows HubSpot to access your IONOS account and automatically update the CNAME record for the domain.
godaddy-set-up-hosting
  • If you're not using GoDaddy or IONOS, or if you'd rather make the changes to your DNS configuration manually, click No, I'll set it up manually
  • Log in to your domain provider and locate your DNS record settings.  If you can't find your DNS settings, reference the steps outlined by provider.
  • Copy the values in the Host and Required Data columns in HubSpot. In your DNS provider account, paste the values into the appropriate record fields for the CNAME record of the subdomain you're connecting. Once you've entered the values into the CNAME record, click Verify.

Please note: some providers, such as Network Solutions, or GoDaddy, will add your brand domain and top-level domain to the end of DNS records automatically. For example, if you enter {hsdomainkey}.yourdomain.com, it will turn that value to {hsdomainkey}.yourdomain.com.yourdomain.com, which will result in a DNS error. Instead, copy the value but remove the .yourdomain.com part, then paste into the corresponding field in your DNS provider account.

  • Once you update your DNS records, they will be verified within 15 to 80 minutes. You can check on how much time remains at the bottom of the page. Leaving this page will not interfere with the validation process. 

input-dns

  • If there are any problems verifying your DNS changes, you can review a detailed description of any errors that occurred. For a more detailed description of the error, hover over the warning alert icon In the Current data column. 
domain-errors

 

Once your domains are connected, SSL will be turned on automatically. This usually takes a few minutes, but can take up to four hours. Learn more about SSL and domain security and troubleshooting SSL certificate errors

HubSpot does not provide SSL certificates for domains that exceed 64 characters. This limit includes the subdomain, domain, and top-level domain. If your domain needs to be longer than 64 characters, you can turn on SSL by purchasing a custom SSL certificate. To set this up, reach out to your HubSpot account representative, or contact HubSpot Support to get connected with the right person.

Add new content types to existing domains

Once you've connected a domain, you can edit which content types are hosted on that domain. 

  • In your HubSpot account, click the settings settings icon in the main navigation bar.
  • In the left sidebar menu, navigate to Website > Domains & URLs.
  • Next to the domain you want to edit, click the Edit dropdown menu and select Connect domain with more content types.

edit-content-types-for-domain

  • In the dialog box, select the checkbox next to each content type you want to host on this domain, then click Save. If a content type already has a primary domain selected, you will need to edit its primary domain instead. 

select-content types

Was this article helpful?
This form is used for documentation feedback only. Learn how to get help with HubSpot.