如何屏蔽Google Domains的网址重定向

时间:2017-11-04 16:59:06

标签: dns cname domain-name google-domains

在Google Domains上,我拥有www.example.com。我也在www.university.com/~myname免费托管。

我希望能够前进 www.example.comwww.university.com/~myname

但我希望域仍显示为www.example.com

我也想要

www.example.com/something/something.txt

转发到

www.university.com/~myname/something/something.txt

网址仍显示www.example.com/something/something.txt

我该怎么做?

(我知道这个问题存在,但设置页面已经过时了:How to mask the domain forward from Google domains without Google app

1 个答案:

答案 0 :(得分:3)

如果没有人站起来重定向请求的网络服务器,这是不可能的。

使用CNAME,您可以将www.example.com屏蔽到www.university.com,因为此翻译完全基于DNS。 www.university.com/~myname的概念是URL路径的HTTP概念,您需要一个HTTP服务器(也称为Web服务器)来执行此重定向。

查看URL转发服务(NameCheap在您的FreeDNS服务器用于DNS时提供此类服务https://www.namecheap.com/support/knowledgebase/article.aspx/545/51/how-do-i-set-up-url-redirect-when-i-use-your-freedns-service。您不需要将域名注册转移给他们(您可以将其保留在Google上),只需将您的NS记录移至namecheap服务器即可使用其重定向服务。