theUtherSide
theUtherSide

Reputation: 3476

Redirect Assets Using AWS S3 / CloudFront

I have a file that I want to rename, and I want to redirect incoming requests to the new file name.

Can I do this with AWS settings? I'm hoping I can setup a permanent alias in S3, so that the correct file gets copied out to CloudFront.

I found this doc on aliasing, but I'm not sure if it's what I need.

http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resource-record-sets-choosing-alias-non-alias.html

Upvotes: 0

Views: 453

Answers (1)

theUtherSide
theUtherSide

Reputation: 3476

I was able to figure this out after further digging in the S3 interface and using this post:

Amazon S3 Redirect and Cloudfront

Redirects can be setup using metadata with a key "Website Redirect Location" and the new URL as the value.

Upvotes: 1

Related Questions