我想实现Intercom提供给他们的客户的相同功能;它们允许执行Custom Domains for Articles。我不太确定他们如何实现他们的实现方法,或者确切地说他们在幕后正在做什么。
采取以下情况;客户(NorthWind公司)在我公司的网站(northwind.example.com)上有一个子域。
将发生以下情况:
northwind.example.com
,他们将转到northwind.example.com
,并且northwind.example.com
出现在网址栏中。example.northwind.com
,他们将转到northwind.example.com
,并且example.northwind.com
出现在网址栏中。[Intercom实现它的方式与我希望实现它的方式之间的区别在于,我使用的是subdomain,而不是目录,如上面对讲的Intercom帮助文章所述。
考虑到我的网站可以在Nginx,NodeJS和MongoDB上运行,这是到目前为止我想到的:
我已经研究过Redirect Web Page to Another Site Without Changing URL和Does a Cname Change the URL that the Browser Displays。
我在正确的道路上,还是有更好的方法?
我想实现对讲机提供给客户的相同功能;它们允许实施文章的自定义域。我不太确定他们如何处理他们的...