Ends in
00
days
00
hrs
00
mins
00
secs
ENROLL NOW

Get $4 OFF in AWS Solutions Architect & Data Engineer Associate Practice Exams for $10.99 each ONLY!

Setting Up Redirects on Amazon S3 for a Custom Domain Registered with Amazon Route 53

Last updated on November 6, 2023

This article will guide you on creating redirects on Amazon S3 for a website with a custom domain registered with Amazon Route 53. The following services will be used: Amazon Route 53 for domain registration and routing internet traffic, Amazon S3 for bucket creation, uploading a redirection script, configuring permissions for public access, and configuring the buckets for website hosting.

In this example, we will redirect a custom domain registered with Amazon Route 53 instead of using this lengthy URL. –

https://aws.amazon.com/developer/community/community-builders/community-builders-directory/?cb-cards.sort-by=item.additionalFields.cbName&cb-cards.sort-order=asc&awsf.builder-category=*all&awsf.location=*all&awsf.year=*all&cb-cards.q=Nestor%2BMayagma%2BJr.&cb-cards.q_operator=AND

STEPS

Step 1: Go to Amazon S3 → Buckets → Create bucket

Follow the configurations below:

Follow this configuration:

Save changes.

Step 2: Note the Bucket website endpoint. We will use it on Amazon Route 53.

Step 3: Go to the Permissions tab → Bucket policy → Edit.

Tutorials dojo strip

Paste the policy below:

Ensure to replace the current domain name with your domain name.

Save Changes.

Step 4: Create an HTML file using the provided HTML content below.

Replace the current URL with the URL you wish to redirect to.

In this example, we’re using the http-equiv attribute with a “refresh” directive in a tag to redirect to the AWS Community Builder Directory, where my name is listed.

Step 5: Save the file and name it index.html.

Step 6: Upload the index.html file in Amazon S3.

Add files → Upload the created HTML file:

Click Upload.

Step 7: Go to Amazon Route 53 → Hosted Zones → Your domain → Create record.

Follow the configuration below.

  • Ensure to replace the subdomain under the Record name.
  • Enter the Bucket website endpoint that you copied in Step 3.

That’s it! Using cb.nestormayagmajr.com it will now redirect to this very lengthy URL. –

https://aws.amazon.com/developer/community/community-builders/community-builders-directory/?cb-cards.sort-by=item.additionalFields.cbName&cb-cards.sort-order=asc&awsf.builder-category=*all&awsf.location=*all&awsf.year=*all&cb-cards.q=Nestor%2BMayagma%2BJr.&cb-cards.q_operator=AND

Get $4 OFF in AWS Solutions Architect & Data Engineer Associate Practice Exams for $10.99 ONLY!

Tutorials Dojo portal

Be Inspired and Mentored with Cloud Career Journeys!

Tutorials Dojo portal

Enroll Now – Our Azure Certification Exam Reviewers

azure reviewers tutorials dojo

Enroll Now – Our Google Cloud Certification Exam Reviewers

Tutorials Dojo Exam Study Guide eBooks

tutorials dojo study guide eBook

FREE AWS Exam Readiness Digital Courses

Subscribe to our YouTube Channel

Tutorials Dojo YouTube Channel

FREE Intro to Cloud Computing for Beginners

FREE AWS, Azure, GCP Practice Test Samplers

Recent Posts

Written by: Nestor Mayagma Jr.

Nestor is a web developer and member of the AWS Community Builder. He continuously strives to expand his knowledge and expertise in AWS to foster personal and professional growth. He also shares his insights with the community through numerous AWS blogs, highlighting his commitment to Cloud Computing technology. In his leisure time, he indulges in playing FPS and other online games.

AWS, Azure, and GCP Certifications are consistently among the top-paying IT certifications in the world, considering that most companies have now shifted to the cloud. Earn over $150,000 per year with an AWS, Azure, or GCP certification!

Follow us on LinkedIn, YouTube, Facebook, or join our Slack study group. More importantly, answer as many practice exams as you can to help increase your chances of passing your certification exams on your first try!

View Our AWS, Azure, and GCP Exam Reviewers Check out our FREE courses

Our Community

~98%
passing rate
Around 95-98% of our students pass the AWS Certification exams after training with our courses.
200k+
students
Over 200k enrollees choose Tutorials Dojo in preparing for their AWS Certification exams.
~4.8
ratings
Our courses are highly rated by our enrollees from all over the world.

What our students say about us?