Redirect Domain to Another Domain Using AWS Route 53

In this blog post, I will show you how I redirect a domain hosted on AWS route 53 to another domain.

Get Started

This process can be done on a few levels:

  • DNS level
  • Server level
  • Website level

The issue with the last two options is that they taking processing power from the server.

When using DNS level routing the requests are not hitting the server and AWS handles the process.

In this process, I will need to create an S3 bucket for web hosting with redirection.

The process might sound complicated but it is not.


In this process, I will redirect to

Create S3 Bucket

The first step will be creating an S3 bucket with the name of

S3 buckets 
Q Search tor buckets 
+ Create bucket 
Bucket name 
Edit public access settings 
Name and region 
Bucket name 
Asia Pacific (Sydney)

After the bucket is ready, I will click on it and open the Properties page.

I will enable Static web hosting and select the redirection option.

rsions ot an object in the 
me bucket 
am more 
Access points 
Server access logging 
Set up access log records that provide 
details about access requests. 
Leam more 
Static website hosting 
Host a static website, which does not 
require server-side technologies. 
Learn more 

In the redirection option, I will select Redirect requests.

I will type under the target bucket or domain.

The protocol will be http.

Note: https redirection is not supported.

Static website hosting 
Endpoint http://wmv_deploycontainerscom_s3-website-ap-soutneast- 
IJse this bucket to host a websiteO Learn more 
Redirect requests O Leam more 
Target bucket or domain 
Disable website hosting 

Route 53 Configuration

Now, I will head over to the Route 53, Zone and change or create a new A record for www.

Below, you can see the configuration.

Name = www

Alias = yes

Alias Target = the S3 bucket with the name

Note: If your bucket name is not the same as the domain or it is taken you will need to use a server-level redirection.

Create Record Set 
A — IPv4 address 
Alias: @ Yes 
Alias Target: 
You can also type 
- CloudFront di 
- Elastic Beansta 
- ELB load balan 
- S3 website end 
- Resource reco 
- VPC endpoint: 
- API Gateway cu 
2 amazonawsz 
- Global Accele 
Learn More 
Enter target name 
S3 website endpoints (s3-website-a'H 
ELE Application load balancers — 
No Targets Available 
— ELE Classic load balancers — 
No Targets Available 
ELE Network load balancers — 
No Targets Available 
Routing Policy: Simple 
Route 53 responds to queries based only on the values in this record Learn 
Evaluate Target Health: 
O Yes 
@ No

Click create and you are done.