Overview

I needed to redirect from one URL to another and was able to accomplish this using Amazon S3 and Route 53, so this is a memo of the process.

Method

This method uses an S3 bucket for the redirect and Route 53 for DNS configuration. The steps are explained below.

Step 1: Amazon S3 Bucket Configuration

  • Create a new bucket in Amazon S3. The bucket name should match the domain name you want to redirect (e.g., example.com).
  • In the bucket properties, select “Static website hosting.”
  • In the “Static website hosting” options, choose “Redirect requests” and enter the redirect destination URL (e.g., http://example.net).

Step 2: DNS Configuration in Route 53

  • In Route 53, open the hosted zone for the domain name you want to redirect.
  • Create a new record set. Select A as the record type.
  • Set “Alias” to “Yes.”
  • As the alias target, select the static website hosting endpoint of the S3 bucket configured in Step 1 (e.g., example.com.s3-website-us-east-1.amazonaws.com).

With this setup, when someone accesses the specified domain, they will be redirected to the configured URL. This method is simple yet effective for redirecting from one domain to another URL.

Summary

I hope this serves as a useful reference.