COS-General

How to go live with HubSpot using Bluehost

Last updated: December 13, 2016

Available For:

Product: HubSpot Marketing
Subscription: Basic, Professional, & Enterprise

Follow these steps to go live on the HubSpot COS with a Bluehost registered domain that has its nameserver set to Blue Host. If you moved your nameserver to another host after registering the domain with Blue Host, you'd instead need to make the changes on the other host.

In order to properly go live on the HubSpot COS, you need to set up a 301 redirect/domain forwarding from the root domain (domain.com) to the subdomain you are connecting to HubSpot (subdomain.domain.com) in Bluehost. In the instructions below that address setting up that redirect in Bluehost, you may find that you need to either set up the redirect yourself by editing the .htaaccess file, which takes a good amount of technical know-how, or contact Bluehost support to have them set up that 301 redirect for you. HubSpot Support does not support the editing or updating of your .htaaccess file, so you will need to contact Bluehost if you cannot do it yourself. If your DNS provider does not provide a 301 redirect, please reach out to our Support team and they can help you with a solution. 

In HubSpot:

  • Navigate to Content > Content Settings.
  • Click on the Domain Manager link in the Content Optimization System Tools side menu. 
  • Click Connect Another HubSpot COS Domain button at the bottom of the HubSpot COS Domains table.
  • Add your new domain to connect and configure how it will connect to your HubSpot content. If this is the first domain you'll be connecting 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.
  • You will want to connect www.mydomain.com and not mydomain.com because 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.
  • Click Connect Domain.
  • Copy down the CNAME record provided, ex: 123456.webhost77.hubspot.net

In Blue Host:

Blue-host-login
  • Locate and click on cpanel in the upper left hand corner of the navigation menu.
Locate and click on cpanel in the upper left hand corner of the navigation menu.
cpanel-navigation-link
  • Scroll down to the Domain management Section and click on DNS Zone Editor.
Domain Management DNS Zone Editor
  • If you have multiple domains, select the correct domain in the Select a Domain section and click Reload.
If you have multiple domains, select the correct domain under the section Select a Domain and click Reload.
Domain-Select
  • Take a screenshot of the DNS record set-up within the account for your records.
  • Locate and delete the WWW if it's in the A-Host section.
  • Either add in the WWW CNAME record or edit the WWW CNAME record by pointing it to HubSpot's CNAME record.
add or edit cname
add or edit cname
  • Save changes.
  • At the top of the page click on redirect.
redirect navigation item
  • Select Permanent 301
  • To redirect to the WWW.yoursite.com
  • Select the Do Not Redirect WWW option.
  • Select Make this a wildcard redirect to redirect traffic from yoursite.com/{rest-of-url} to www.yoursite.com/{rest-of-url} (without this, all URLs on your root domain, yoursite.com/{rest-of-url} will redirect to www.yoursite.com)
  • Add this redirect.

If you find that need further assistance setting up that wildcard redirect in Bluehost, you'll need to either set up the redirect yourself by editing the .htaaccess file, which takes a good amount of technical know-how, or contact Bluehost support to have them set up that 301 redirect for you. HubSpot Support does not support the editing or updating of your .htaaccess file

add redirect
add redirect
  • It may take anywhere from a couple hours to 24-48 hours for these DNS changes to propagate, at which point you'll see the domain is properly connected in the HubSpot Domain Manager.

Was this article helpful?