Oct 3, 2018 11:31 AM
WHY? What are the technical reasons that HubSpot cannot host content on the root domain?
I'm moving my company website to HubSpot COS. All our content is hosted on the root domain: https://foobar.com
So, now we are going to have to implement redirects
My developers are not at all happy about this. They think it is a ridiculous constraint by HubSpot to not support content on the root domain.
So, can someone explain to me WHY it is impossible? What's up with the HubSpot infrastructure that makes this impossible?
Oct 3, 2018 12:02 PM
It's definitely not ideal that you can't host content on the root domain, especially for migrating sites. The reasons we don't currently support it are partially due to internet infrastructure and partially due to reliability concerns.
We rely on CNAME chains to route domains to our servers. Unfortunately the DNS specification does not allow CNAME for root domains. There are ANAMEs which do allow CNAMEs for root domains, but that's supported by very few DNS providers.
The alternative to CNAMEs is just using IPs which DO work for root domains. The issue with IPs is that if they are DDoSed, then customers have to update their DNS to switch to a new IP to restore their site. Since it's not feasible to give every customer their own unique (v4) IPs (or set of IPs), a single DDoSed IP could take down many sites. In fact, many years ago we used to give out IPs, and we suffered this exact situation.
We do offer a service to automatically redirect your root domain paths to www domains so you don't have to set those up manually with another hosting provider.
We're also investigating new tricks that may allow hosting on the root domain, but we don't have a timeline for that at this time.
Oct 3, 2018 12:22 PM
Thanks for your explanation. It makes sense and it's very helpful to me to be able to pass along to my developers.
Can you tell me more, or provide a link that describes the "service to automatically redirect your root domain paths to www domains"? Does this redirect HTTPS as well as HTTP? (see the other question I posted today: HTTPS Redirect To HubSpot - What is Best Practice?)
Aug 8, 2020 10:55 AM
Boulter, I am starting hubspot onboarding an I have gotten to conclusión that using subdomains to publish the blogs is undesirable because it will impact google rankings.
At the moment our blog is inside root domain, given 2 year since you answered this, please advice if nowadays there is a way for hubbspot to publish the blogs inside our wordpress instance (root domain). https://itksoluciones.com/blog-section-controlcombustible/
Mar 18, 2021 2:39 PM
We just created our entire site only to find out that I cannot make entries in the DNS to change the A record as no IP is provided. I am not sure if Hubspot still only wants sub domains to be hosted on their service while the primary website should be outside Hubspot.