APIs & Integrations

PatrickEng
HubSpot Employee
HubSpot Employee

Setting Root Domain Redirect from Cloudflare to HubSpot Subdomain

Hi,

One of our clients uses Cloudflare for their root domain. While we were able to get all their subdomains (including www) setup on HubSpot, we're having issues where the root domain isn't redirecting to the subdomain.

I couldn't find any documentation on setting up the root domain redirect to the HubSpot hosted www, since all the documentation revolves around godaddy, networks solutions, or other common DSPs.

I found this article that could work, but if somoene who has done this before could verify this would work with Cloudflare, that would be great!

Any info would be appreciated.

Thanks,

Patrick Eng

0 Votes
5 Réponses
Phil_Vallender
Membre irremplaçable | Partenaire solutions Diamond
Membre irremplaçable | Partenaire solutions Diamond

Setting Root Domain Redirect from Cloudflare to HubSpot Subdomain

Hi @Patrick_Eng - did you have any luck with that? I've come across a similar situation (come across it more and more actually) where a root domain is in use and Cloudflare is providing the DNS.

Phil Vallender | HubSpot Website Agency
0 Votes
PatrickEng
HubSpot Employee
HubSpot Employee

Setting Root Domain Redirect from Cloudflare to HubSpot Subdomain

@philvallender, Yes! We sent them the article and they were able to make all the needed changes for us.

It looks that article is the best way to get the root domain to redirect.

0 Votes
Phil_Vallender
Membre irremplaçable | Partenaire solutions Diamond
Membre irremplaçable | Partenaire solutions Diamond

Setting Root Domain Redirect from Cloudflare to HubSpot Subdomain

@Patrick_Eng Thanks - was this working on your https domains or only http?

Phil Vallender | HubSpot Website Agency
0 Votes
PatrickEng
HubSpot Employee
HubSpot Employee

Setting Root Domain Redirect from Cloudflare to HubSpot Subdomain

@philvallender, I don't have the specifics, but from my understanding, they redirected simply from all naked URLs to www versions, which then were automatically redirected from http to https in HubSpot.

When I search the site in any browser from the naked domain, it just goes immediately to the https www version immediately, so there's no noticeable redirect besides the naked to www. Hope that helps!

Derek_Gervais
Ancien salarié HubSpot
Ancien salarié HubSpot

Setting Root Domain Redirect from Cloudflare to HubSpot Subdomain

Hi @Patrick_Eng,

I'm not familiar with Cloudflare forwarding specifically, but that sounds like it should work. Interested to hear from others with more direct experience as well.

0 Votes