【问题标题】:heroku and namecheap example.com url (redirecting from www.example.com to just example.com)heroku 和 namecheap example.com url(从 www.example.com 重定向到 example.com)
【发布时间】:2016-02-29 18:52:12
【问题描述】:

我有一个网页 example.com,我使用 Heroku 设置得很好。现在,在 Heroku 的域设置中,我有:

Domain Name                    DNS Target

example.com       example.herokuapp.com


www.example.com   example.herokuapp.com

在 Namecheap 我有:

Type         Host            Value                TTL          
CNAME       www  example.herokuapp.com.  30 min

URL Redirect Record @  http://www.example.com Unmasked

发生的情况是,如果我输入 example.com,它会重定向到 www.example.com。我希望 example.com 和 www.example.com 都重定向到 example.com。

不知道怎么做(heroku DNS 的新手)。谢谢!

【问题讨论】:

    标签: heroku dns


    【解决方案1】:

    您无法使用 Namecheap 做到这一点,因为他们不会支持您在 Apex 记录上使用 example.herokuapp.com。如果您希望在 example.com 之类的 URL 上可以访问,您需要将您的 DNS 移动到支持它的提供商,例如 PointDNS、DNSimple、CloudFlare 等。这些提供商已经实施了一种技术,可以让您在顶点上使用 CNAME记录。

    【讨论】:

      猜你喜欢
      • 2012-10-17
      • 2020-09-24
      • 2011-02-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-04-24
      • 2016-01-16
      • 2014-10-02
      相关资源
      最近更新 更多