如何使用Route53从一个顶级域重定向到另一个顶级域 [英] How do you redirect from one toplevel domain to another using Route53
问题描述
很抱歉,如果我的术语在这里不太正确
Apologies if my terminlogy is not quite correct here
我在Route53上的域albunack.net运行正常. 我还拥有Route 53控制下的域名albunack.com
I have the domain albunack.net working fine on Route53. I also have domain albunack.com under Route 53 control
我希望对albunack.com的任何请求都重定向到albunack.net,并向用户显示他们位于albunack.net而不是albunack.com(通过Web浏览器地址)上
I want any requests to albunack.com to redirect to albunack.net and also to show the user they are on albunack.net not albunack.com (via the webbrowser address)
我尝试为albunack.com创建别名为A的A记录,并将别名目标设置为albunack.net,但这没有用,它无法识别albunack.net,我该怎么办?
I tried creating an A record as Alias for albunack.com and setting alias target to albunack.net but that didnt work it didnt recognise albunack.net , how am i meant to do it ?
推荐答案
您可以通过使用S3存储桶重定向到albunack.net来实现.首先,您需要创建一个S3存储桶,并将albunack.com指向该存储桶.
You can do this by using an S3 bucket to redirect to albunack.net. First, you'll need to create an S3 bucket and point albunack.com to it.
- 创建一个名为albunack.com的S3存储桶(名称很重要,必须与域名匹配).
- 将存储桶配置为充当静态网站.在存储桶属性中执行此操作.转到静态网站托管,然后选择将所有请求重定向到另一个主机名.
- 输入 http://albunack.net 作为您要将所有请求转发到的地址.
- 走53号公路,将albunack.com指向S3存储桶.您可以通过为S3存储桶创建别名记录来做到这一点.
- Create an S3 bucket called albunack.com (the name is important and must match the domain name).
- Configure the bucket to act as a static website. Do this in the bucket properties. Go to Static Website Hosting and select Redirect all requests to another host name.
- Enter http://albunack.net as the address you want to forward all requests to.
- Go the Route 53 and point albunack.com to the S3 bucket. You can do that by creating an alias record for the S3 bucket.
现在,当用户访问albunack.com时,请求将转到S3存储桶,该存储桶将以重定向到albunack.net的方式进行响应.您可以在 Root上看到此技术的说明. AWS博客上的Amazon S3域网站托管.
Now when users go to albunack.com, the request will go to the S3 bucket which will respond with a redirect to albunack.net. You can see a description of this technique at Root Domain Website Hosting for Amazon S3 on the AWS blog.
这篇关于如何使用Route53从一个顶级域重定向到另一个顶级域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!