It’s was lightly touched on here: Subdomain vs Subdirectory - SEO and Rankings
I am looking to host a microsite on hubspot, using sub.main.com, but have it appear as main.com/sub. I can configure this just fine via MaxCDN to proxy, but the issue is on Hubspot, there is no published way to set the domain in the source for links - we do not want our canonical tags pointing to sub.main.com . The only way I can see is running a reverse proxy with http://nginx.org/en/docs/http/ngx_http_sub_module.html but we will not use Hubspot if it comes down to that.
Is there an undocumented way to pass along a header to Hubspot and have it use a different domain for it’s base_url? A lot of systems accept this functionality.