Domains & URLs

Change the primary domain for your HubSpot content

Last updated: November 19, 2019

Applies to:

Marketing Hub  Professional, Enterprise
Legacy Marketing Hub Basic
HubSpot CMS

To change the primary domain for your HubSpot-hosted content, add your new domain as a redirect domain first. Then replace your existing primary domain with the new domain. Marketing Hub Enterprise accounts can use different subdomains for individual blogs, landing pages, and website pages.

Before you get started

These instructions are for replacing the primary subdomain or top-level domain for your content.  In the example domain blog.taco.com, the subdomain is blog, the brand domain is taco and the top-level domain is com.

Please note: if you're replacing your brand domain and subdomain or top-level domain (e.g. changing blog.taco.com to blog.burrito.org), then complete the following steps in this order:

  1. Connect your new domain as a redirect domain.
  2. Replace your brand domain
  3. Replace your primary domain.

Domain manager changes

To change the primary domain for a content type:

  • In your HubSpot account, click the settings icon settings in the main navigation bar.
  • In the left sidebar menu, navigate to Domains & URLs.
  • If the domain you want to use as the new primary domain is not yet connected, connect the domain.
  • In the Primary domains section, click the Edit dropdown menu for the content type whose primary domain you are replacing. Then select Replace primary domain.

  • In the dialog box, click the Select a new primary domain dropdown menu and select the domain, then click Replace primary domain.

Please note: HubSpot will not create URL redirects when you make changes to your domains. However, if a domain becomes a redirect domain, then any traffic to that domain will be 301 redirected to the primary domain for the selected content type.

For example, if you want to change the primary domain for your HubSpot-hosted blog from www.domain.com to blog.domain.com, there are two possible scenarios: 

  • If www.domain.com isn't used as a primary domain or secondary domain for any other content types, the domain manager will keep www.domain.com connected as a redirect domain. This will create 301 redirects from www.domain.com to blog.domain.com from the domain manager.
  • If you're hosting your blog and any other content types (i.e., landing pages) on www.domain.com, this domain won't be available to connect as a redirect domain. In this case you'll need to set up URL redirects for any existing blog content.

Target domain and analytics

If you change your target domain, you should update the target domain for your account.

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

Page-level domain changes (Marketing Hub Enterprise accounts only)

If you have Marketing Hub Enterprise account, you can select different primary domains for your individual blogs, landing pages, and website pages.

Select different domains for individual blogs

  • In your HubSpot account, click the settings icon settings in the main navigation bar.
  • In the left sidebar menu, navigate to Website > Blog.
  • In the upper left, click the Select a blog to modify dropdown menu and select a blog.
User-added image
  • Click the Blog root URL dropdown menu and select a domain.
  • In the bottom left, click Save.

Please note: if you change the Blog root URL, redirects will automatically be set up to forward any existing published blog content to their corresponding new URL. If there is no existing published blog content, redirects will not be created automatically.

Select different domains for individual landing pages and website pages

  • In your HubSpot account, navigate to website pages or landing pages.
  • Hover over a page and click Edit.
  • Click the Settings tab.
  • In the Page URL field, click the pencil icon edit.
  • In the dialog box, click Update.
  • In the Page URL field, click the domain dropdown menu and select a new domain.

  • In the upper right, click Update to take the URL change live.
/cos-general/how-do-i-change-the-domain-used-for-my-hubspot-content