CMS-General

Change the primary domain used for your HubSpot content

Last updated: September 14, 2018

Applies to:

Marketing Hub Basic, Professional, Enterprise

You can change the domain used for your HubSpot content by adding it to your domain manager, then setting it as the new primary domain for your content. Additionally, Marketing Hub Enterprise users can select different domains for individual blogs, website pages, and landing pages. 

This article covers: 

Domain manager changes

If you wish to change which domain is the primary domain for a particular content tool type, follow the steps below:

  • In your HubSpot account, click the settings icon settings in the main navigation bar.
  • Click Domains & URLs in the left sidebar menu.
  • Click Connect a domain to take your subdomain live as a secondary domain. 
  • After your subdomain is connected, locate the content tool you want to connect it to in the Primary domains section, then click Edit Replace primary domain.

edit-replace-primary-domain

  • In the dialog box that appears, use the dropdown to select your newly-connected subdomain, then click Replace primary domain.

Depending on your Marketing Hub subscription and how you move your content types, 301 redirects may automatically be put in place to redirect visitors who try to access your content at the old page URLs.

  • Marketing Hub Basic: when you replace the primary domain for your content, the original domain will remain connected in your account as a redirected domain, and 301 redirects will automatically be set up for all of your existing content. If you have set up any 301 redirects in the URL mappings tool, no new redirects will be created for those pages when you replace the primary domain for your content.
  • Marketing Hub Professional and Enterprise:
    • If you replace the primary domain for all of the content types on a domain, the original domain will remain connected in your account as a redirected domain, and 301 redirects will automatically be set up from the original URLs of your existing content. If you have a Marketing Hub Enterprise account and have changed the domain for individual pages, 301 redirects will not automatically be set up for those pages. You can use the URL mappings tool to set up redirects as needed.
    • If you replace the primary domain for only some of the content types on a domain, the original domain will not become a redirecting domain, and 301 redirects will not automatically be set up from the original URLs of your existing content. You can use the URL mappings tool to set up redirects for your existing content.

Target domain and analytics

You may need to update the target domain for your account. You can read more about these changes and other steps to consider here.

Previous website visits to the old domain will still appear in your analytics in HubSpot, and you'll be able to view the old URLs in your page performance data. The visit data will remain in your sources report. However, you will no longer be able to sort your visits by your old domain if it is no longer a primary domain in your domain manager.

Page-level domain changes (Marketing Enterprise users)

If you're a Marketing Hub Enterprise user, you can select different primary domains for your blogs, website pages, and landing pages:

Select different domains for your blogs

If you have multiple blogs in HubSpot and would like to host them on different domains: 

  • In your HubSpot account, click the settings icon settings in the main navigation bar.
  • In the left sidebar, click Webiste > Blog.  
  • Choose a blog from the Select a blog to modify dropdown menu.


Select-a-blog
User-added image
  • On the General tab, select a new domain from the Blog root URL dropdown menu. 
  • Click Save

Select different domains for your website pages and landing pages 

  • In your HubSpot account, navigate to website pages or landing pages.  
  • Hover over a page and click Edit
  • Click the Settings tab at the top of the page editor.  
  • Click the pencil icon below Page URL. Then select a new domain from the dropdown menu.
  • Click Update in the upper right-hand corner to make this change live. Repeat these steps for all landing pages and website pages you would like to change domains for.

User-added image

Was this article helpful?

If you still need help you can get answers from the , or to contact support.