got*_*345 5 subdomain dns heroku no-www http-redirect
这是一个非常具体的问题,我将网络解决方案上的域重定向到heroku上托管的webapp.我已经设置好了,在CNAME Records中,Allias www引用了heroku中的主机名.问题是,目前如果我输入我的网址没有www它不会呈现我的页面.有人可以帮帮我吗?我已经非常努力地想出这个.希望这篇文章也将在未来帮助其他人.

bln*_*lnc 14
网络解决方案将yourdomain.com指向www.yourdomain.com.这是如何做.
在"帐户管理器"中,选择"我的域名"
Select the domain name that you want to manage
Run Code Online (Sandbox Code Playgroud)
在绿色框中,选择"更改域名点"
Select Advanced DNS, then Continue
Run Code Online (Sandbox Code Playgroud)
首先,选择编辑A记录编辑A记录
For the "@ none" enter the following IP address 205.178.189.129,
clear (delete) the records for the "www" and "* (All others)",
then select Continue.
Sometimes this takes a few moments for the first step to take effect.
Run Code Online (Sandbox Code Playgroud)
其次,通过选择编辑CNAME记录来编辑主机别名(CNAME记录)
在Alias列中输入"www"
将TTL设置为7200,但在同一行,输入其他主机部分中的博客服务提供的名称服务器[IE跟随HEROKU指令现在www - > yourapp.herokuapp.com(Cedar Stack)]
选择继续
现在等待并使用以下终端命令检查域:
主机domain.com主机www.domain.com