Domains & URLs

Change the primary domain for your HubSpot content

Last updated: October 15, 2020

Applies to:

Marketing Hub  Professional, Enterprise
CMS Hub  Professional, Enterprise
Legacy Marketing Hub Basic

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.

If you have multiple domains or subdomains connected to your account, learn how to change the URL for individual pages or blogs.

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.
  • If you're changing your primary domain and want to use your new domain as the focus of your analytics, it's recommended to also update your company domain.
  • If you just want to change the domain or subdomain of an individual page or blog post, learn how to update the URL in the content editor.

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.

Change your primary domain

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.