COS-General

How to go live with HubSpot and a generic cPanel name server

Last updated: March 24, 2017

Available For:

Marketing: Basic, Pro, Enterprise
Sales: N/A

If your domain is registered with a name server that uses the cPanel interface to make DNS changes, you can follow these steps to go live on the HubSpot COS. Blue Host, Host Gator, and Host Monster are three popular providers that use this popular hosting interface. Depending on your host and the version of cPanel they use, the screenshots in this tutorial may differ from what you see, but the overall process is the same.

There are two sets of instructions below. The first set of instructions is for sites that are partially hosted with the HubSpot COS. This means you are only hosting some of your content with HubSpot, such as your Blog and Landing Pages, but have your main site hosted elsewhere. The second set is for fully hosted websites. This option is for if you will have your entire main website built on HubSpot's COS. Before proceeding, click the option below that best describes what you will be hosting with HubSpot to see the correct set of instructions for taking your site live with HubSpot.    

I will only be hosting part of my website with the HubSpot COS (ex: Blog, Landing Pages, Trial Accounts)

I will be hosting my entire site with the HubSpot COS (the content built in HubSpot will replace my existing website)

Instructions for if your site is only partially hosted with HubSpot

If you are only taking parts of your website live with HubSpot, like your blog and landing pages, follow these instructions. If you are using a free trial of HubSpot and wish to connect part of your domain, you will also want to follow these instructions, as opposed to connecting your full site.  

1. Go to Content > Content Settings

Log in to HubSpot and navigate to Content > Content Settings.

2. Select Domain Manager

Click on the Domain Manager link in the Content Optimization System Tools side menu. You can also access the domain manager using this link.

2. Select Domain Manager

The Domain Manager tool displays all of the domains and subdomains that are associated with your HubSpot account. You can see the connection status of those domains, edit the configuration of each domain, or remove them from your account.

3. Click Connect Another HubSpot COS Domain

To connect your domain, click on the Connect Another HubSpot COS Domain button at the bottom of the HubSpot COS Domains table.  

3. Click Connect Another HubSpot COS Domain

4. Enter the subdomain that you want to connect to HubSpot

In the Domain to Connect field you will want to enter a subdomain to associate with your HubSpot content such as blog.YourDomainName.com or info.YourDomainName.com, because HubSpot will only be responsible for hosting part of your site's content. In the example below, info.sshubspot.com is used.

4. Enter the subdomain that you want to connect to HubSpot

5. Choose your configuration options for the domain

Next you'll select what types of content you want to use the subdomain for. In this example, we are using HubSpot for our Blog, Landing Pages, and webpage versions of Email, but not our full site.

Please note: Portals on the Basic subscription of HubSpot will not see the check boxes to select the various tools as they are able to host content on a single subdomain for all tools.

5. Choose your configuration options for the domain

6. Click Connect Domain

After you've selected your domain configuration options, click the Connect Domain button to add the domain to your list of domains and get the CNAME address information you'll need to use in your name server host account (Blue Host, Host Gator, Host Monster, etc.).

6. Click Connect Domain

7. Copy down the CNAME record provided

After you click Connect Domain, you'll see a message like the one below, but one with CNAME information unique to your HubSpot account. Click the Copy button or highlight the CNAME value and copy it to your clipboard.

copy cname

8. Go to your cPanel account

Sign in to your DNS name server host (Blue Host, Host Gator, Host Monster, etc.) and navigate to your cPanel account.

8. Go to your cPanel account

9. Go to the DNS Zone Editor

Click on the DNS Zone Editor option from the Domains section of cPanel. In some versions of cPanel, this is option is called simply called DNS Zone Editor. If you have multiple domains, you may be prompted to select which domain you would like to edit the DNS for.  Depending on the version of cPanel used by your host the name of this option may vary (ie Simple DNS Zone Editor, Advanced DNS Zone Editor).

9. Go to the DNS Zone Editor

10. Create a CNAME record with the information from HubSpot

Select CNAME (Alias) as the Record Type.  In the Host field, enter the prefix of the subdomain that you would like to connect to HubSpot. In our example, we are connecting info.sshubspot.com to our COS tools, so we want to enter info into the Host field.  Choose CNAME for the type field.  Finally, paste the CNAME address that you copied in Step 7 from your HubSpot account into the Points To field and click Add Record.

10. Create a CNAME record with the information from HubSpot

11. Wait for the DNS change to propagate

Congratulations! You've now connected your subdomain from your cPanel to HubSpot! Your changes will finish taking effect within 24 hours. You'll be able to verify that the domain is connected in HubSpot by going back to the Domain Manager tool in HubSpot and seeing that the Status of the domain is Primary and that the circle next to the domain name is green.

11. Wait for the DNS change to propagate

Instructions for if your entire site is hosted with HubSpot

If you are using the HubSpot COS to host your entire website, follow these instructions. Please ensure that you have all of your content created or migrated into HubSpot before going live. Once your domain is connected, visitors to your site will see the COS site that you have constructed in your HubSpot account.

1. Go to Content > Content Settings

Log in to HubSpot and navigate to Content > Content Settings.

2. Select Domain Manager

Click on the Domain Manager link in the Content Optimization System Tools side menu. You can also access the domain manager using this link.

2. Select Domain Manager

The Domain Manager tool displays all of the domains that are associated with your HubSpot account. You can see the connection status of those domains, edit the configuration of each domain, or remove them from your account.

3. Click Connect Another HubSpot COS Domain

To connect your GoDaddy domain, click on the Connect Another HubSpot COS Domain.  

3. Click Connect Another HubSpot COS Domain

4. Enter the domain name that you want to connect to HubSpot

In this step, type in the domain that you want to connect to HubSpot. In the Domain to Connect field you will the subdomain www.YourDomainName.com, because HubSpot will be responsible for hosting all of your site's content. In the example below, www.sshubspot.com is used.

4. Enter the domain name that you want to connect to HubSpot

What if I want to connect mydomain.com instead of www.mydomain.com?
HubSpot's COS is able to load pages and files at high speed and protect your site against malicious attacks (like DDOS) attacks, but the technology that enables this will only work with what are known as CNAME records. Root domains, a domain without WWW, cannot connect with CNAME records, but WWW domains can. So you will need to connect the WWW version of your domain to HubSpot in order for this to work. The non-WWW version will be redirected to the WWW version, so that visitors will always be able to get to your website.

5. Choose your configuration options for the domain

Next you'll select what types of content you want to use this domain for. If this is the first domain you've connected to your HubSpot account, you'll probably want to make it the primary domain for all tools. To do that, just click on the button next to the make primary for the following tool(s) option and then check the box next to Blog Posts, Email, Landing Pages, and Site Pages. This example shows what it looks like to connect www.sshubspot.com as the primary domain for all content.

Please note: Portals on the Basic subscription of HubSpot will not see the check boxes to select the various tools as they are able to host content on a single subdomain for all tools.

5. Choose your configuration options for the domain

The exact configuration that you will choose for your domain will depend on your business needs, so if you have a question about what options are right for you, please reach out to our Support team to discuss.

6. Click Connect Domain

After you've selected your domain configuration options, click the Connect Domain button to add the domain to your list of domains and get the CNAME record information you'll need to use in your cPanel account.

6. Click Connect Domain

7. Copy down the CNAME record provided

After you click Connect Domain, you'll see a message like the one below, but one with CNAME information unique to your HubSpot account. Click the Copy button or highlight the CNAME value and copy it to your clipboard.

copy cname

8. Go to your cPanel account

Sign in to your DNS nameserver and navigate to your cPanel account.

8. Go to your cPanel account

9. Go to the DNS Zone Editor

Click on the DNS Zone Editor option from the Domains section of cPanel. In some versions of cPanel, this is option is called simply called DNS Zone Editor. If you have multiple domains, you may be prompted to select which domain you would like to edit the DNS for.  Depending on the version of cPanel used by your host the name of this option may vary (ie Simple DNS Zone Editor, Advanced DNS Zone Editor).

  • Photograph the Original DNS record set-up within your account.
9. Go to the DNS Zone Editor

10. Add a CNAME record for the WWW subdomain of your domain

Using the CNAME record that you copied down in Step 7, create a CNAME record for the WWW subdomain of your domain that you added to your HubSpot account in Steps 3-6. You might need to delete or edit an existing www record, depending on the current DNS configuration of your domain. Next, you'll redirect the non WWW-version of your domain to the WWW domain.

10. Add a CNAME record for the WWW subdomain of your domain

11. Go back to your cPanel dashboard

Go back to your cPanel dashboard and then click on the Redirects option from the Domains section.

11. Go back to your cPanel dashboard

12. Create a redirect

Now you'll create a 301 redirect from the non-WWW version of your domain to the WWW subdomain of your domain. To do this, select Permanent (301) as the Type and Do Not Redirect www as the www. redirection option. Select the Wild Card Redirect option. This option makes url slugs get redirected properly (ex: yourDomainName.com/blog gets redirected to www.yourDomainName.com/blog). When you are finished configuring the redirect, click the Add button.

Please note: In most versions of cPanel, this option will add a redirect rule to your .htaccess file. If you have ever pointed your @ record externally, you may need to point your @ record to an internal IP (provided by your DNS service) in order to trigger your .htaccess file. If you have ever customized your .htaccess file for use with another content management system, you may need to modify your .htaccess file to make sure this rule takes effect. Read more here.

12. Create a redirect

13. Wait for the DNS change to propagate

Congratulations! You've now pointed your domain name properly to HubSpot. Your changes will finish taking effect within 24 hours. You'll be able to verify that the domain is connected in HubSpot by going back to the Domain Manager tool in HubSpot, where you'll see that the status of the domain is Primary and the circle next to the domain name is green.

13. Wait for the DNS change to propagate