APIs & Integrations

chripede
Mitglied

Proxy forwarding sub-domain to sub-directory

lösung

Hi,

We're in the process of moving things to HubSpot, but we would very much like to keep current URL structure intact. That means hosting the blog on domain/blog, the knowledge center on domain/help etc.

To do this I'm setting up proxy forwarding in nginx and rewriting the content to replace the internal HubSpot domain with our own. That works OK, except for a few things like clicking on search results will redirect you to internal URLs.

I found a few topics on here regarding the same thing Proxying to Hubspot web pages, landing pages, etc, and @dadams mentions that HubSpot might block the proxy server if it sends to many requests. However, the question about X-Forwarded-For is never answered.

Is there a smart and future proof way of doing this?

0 Upvotes
1 Akzeptierte Lösung
IsaacTakushi
Lösung
HubSpot Employee
HubSpot Employee

Proxy forwarding sub-domain to sub-directory

lösung

Welcome, @chripede.

Thanks for reaching out. The security team has confirmed that we do not support or plan to support using proxy servers to access HubSpot CDN-hosted content.

This includes using X-Forwarded-For headers. As David states in the other topic, your users may not experience issues with this immediately, but we cannot guarantee reliability under any circumstances.

That said, you can maintain your current URL structure (with different content hosted on different subdirectories) just as long as it's on a HubSpot-hosted subdomain (e.g. www.domain/blog instead of just domain/blog). Said differently, you don't have to host your blog on blog.domain.com and your knowledge base on knowledge.domain.com just because you are moving onto HubSpot. If you'd like to discuss these options in more detail, feel free to reach out to HubSpot support.

Isaac Takushi

Associate Certification Manager

Lösung in ursprünglichem Beitrag anzeigen

0 Upvotes
4 Antworten
IsaacTakushi
HubSpot Employee
HubSpot Employee

Proxy forwarding sub-domain to sub-directory

lösung

Hey, @chripede.

Thanks for letting me know. Support should be able to handle general queries like this. Could you share the ticket number so I can reach back out to the specialist?

I may have misunderstood your original request. I assumed that you wanted to replicate your external site's path structure on a HubSpot-hosted www subdomain.

Re-reading your post, I now think you may have been asking whether it is possible to place HubSpot CMS content on your externally-hosted www subdomain, alongside content published through your other CMS. This is not possible with a proxy server for the reasons I mention above.

Isaac Takushi

Associate Certification Manager
0 Upvotes
IsaacTakushi
Lösung
HubSpot Employee
HubSpot Employee

Proxy forwarding sub-domain to sub-directory

lösung

Welcome, @chripede.

Thanks for reaching out. The security team has confirmed that we do not support or plan to support using proxy servers to access HubSpot CDN-hosted content.

This includes using X-Forwarded-For headers. As David states in the other topic, your users may not experience issues with this immediately, but we cannot guarantee reliability under any circumstances.

That said, you can maintain your current URL structure (with different content hosted on different subdirectories) just as long as it's on a HubSpot-hosted subdomain (e.g. www.domain/blog instead of just domain/blog). Said differently, you don't have to host your blog on blog.domain.com and your knowledge base on knowledge.domain.com just because you are moving onto HubSpot. If you'd like to discuss these options in more detail, feel free to reach out to HubSpot support.

Isaac Takushi

Associate Certification Manager
0 Upvotes
brand-idea
Mitglied

Proxy forwarding sub-domain to sub-directory

lösung

Hi there,

 

If the preference is to create a page with a front-facing link that reads "Get Support" and not just "Support". Resulting in www.brand-idea.com/get-support.

 

What if my original link was "/support" resulting in brand-idea.com/support. How can I add a page resulting in a "/support" directory, but have a link label of Get Support? To keep my original link intact for backlinks and printed literature?

0 Upvotes
chripede
Mitglied

Proxy forwarding sub-domain to sub-directory

lösung

@Isaac_Takushi I actually contacted support and they sent me here.

If I understand correctly, your solution requires us to host everything with HubSpot, even our frontpage?

0 Upvotes