Score:0

Best way to redirect root domain ("apex domain") to another location

cn flag

This question is a continuation of Using Route53 to point apex/root domain to Heroku application

Right now I have my domain abc.com registered with Route53. I am using a ddns service to point it to a home server setup. Because of CNAME limitations I can only do this on sub-domains which is usually all I use it for (while hosting the root domain on the cloud). Right now I want to redirect abc.com to www.abc.com in the simplest/cheapest way possible using AWS. There are so many tools on the platform, it's hard to know which one to use for a simple task!

Score:1
cn flag

This ended up being pretty simple using the technique described here https://devopslife.io/redirect-a-route53-domain-to-another-domain-using-s3/:

Create an S3 bucket with the name of domain “example.org” Please note that S3 bucket names must be globally unique. If the bucket name you need is already taken, you can’t use S3 for redirection and this documentation won’t be applicable for you. You may use other work arounds like redirection using a webserver in backend. Go to properties and select “Static web hosting” From the dropdown, select Redirect all requests to another host name. Enter example.com here and protocol (HTTP or HTTPS) and save it Go to Route53 and select the hosted zone for example.org Create a record for example.org with the below values

Record Type: A – IPv4 address

Alias: Yes Alias

Target: Choose your S3 bucket under the heading "S3 Website Endpoints"

Routing Policy: Simple Evaluate Health Target: No

Record Type: A – IPv4 address Alias: Yes Alias

Target: Choose your S3 bucket under the heading "S3 Website Endpoints"

Routing Policy: Simple Evaluate Health Target: No

sr9yar avatar
in flag
Amazon API Gateway can be configured as a proxy service to handle any kind of redirection. It seems like all available options include an extra layer of redirection.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.