Question:
Apologies if my terminlogy is not quite correct here
I have the domain albunack.net working fine on Route53.
I also have domain albunack.com under Route 53 control
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)
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 ?
Answer:
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.
- 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.
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.