# Primary Domain Question

**URL:** <https://community.hubspot.com/t/primary-domain-question/117043>\
**Category:** Blog, Website & Page Publishing\
**Tags:** marketing\
**Created:** [September 25, 2024, 2:20pm UTC](https://community.hubspot.com/t/primary-domain-question/117043 "2024-09-25T14:20:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KKeiser](https://avatars.discourse-cdn.com/v4/letter/k/e47c2d/32.png) [@KKeiser](https://community.hubspot.com/u/KKeiser)\
**Post date:** [September 25, 2024, 2:20pm UTC](https://community.hubspot.com/t/primary-domain-question/117043/1 "2024-09-25T14:20:11Z")

</div>

I have just onboarded hubspot into my company and need some assitance with set up. Our main website is hosted on a root domain which lives in AEM. I want to leverage hubspot to build all our marketing pages and need gudiance on how to facilitate this. Would I set up my primary domain with the subdomain my IT creates for me? When I try this- it forces my root domain to be my main company domain which I dont think is correct…

---

<div class="post-metadata">

**Author:** ![evaldas](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/evaldas/32/69160_2.png) [@evaldas](https://community.hubspot.com/u/evaldas)\
**Post date:** [September 25, 2024, 4:59pm UTC](https://community.hubspot.com/t/primary-domain-question/117043/2 "2024-09-25T16:59:47Z")

</div>

Hi @KKeiser,

Just to clarify, you have an existing website that lives on [mywebsite.com](http://mywebsite.com) (or [www.mywebsite.com](http://www.mywebsite.com)) and you would like to be able to create marketing pages on HubSpot without affecting your main website?

If that is the case, then yes, a sub-domain (i.e. [marketing.mywebsite.com](http://marketing.mywebsite.com)) would be the way to go. When setting up a primary domain, you can choose it to be the sub-domain. HubSpot should not be forcing you to use the main company domain - so there may be a misunderstanding in the user interface.

When connecting a domain, there is an option to add a sub-domain.

 ![evaldas_0-1727283474257.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/8/85db0fd5c3430572f88db0e30cc79c73fc9ab857.png)

However, if you already have a primary domain set, here is a help article on how to change it:

> **[Change the hosting domain for HubSpot content](https://knowledge.hubspot.com/domains-and-urls/change-the-primary-domain-for-your-hubspot-content)**
>
> Learn how to set a domain as the primary domain for your content.
