Redirecting a domain to an external URL

0

Probably a noob question, but please forgive my sudden loss of google-fu. With a domain hosted on Route 53, is there a cheap and reliable (ie set it up once and not need to touch it until the redirect target changes) way to redirect to an external URL (a Google Scholar profile page)?

S3 buckets seem to have a redirect facility (under Static Website Hosting), but it doesn't work for me. I guess that's only good for redirecting to a domain, but I need an exact URL. Do I need Cloudfront, and would the cost be prohibitive? This will be very low-traffic.

I'd like to use a https connection, so that visitors are just bounced seamlessly to the Scholar page with no browser warnings.

1개 답변
2
수락된 답변

I think CloudFront would be a good fit for this - it will provide the lowest latency for your users as the redirect will be served from their nearest Point of Presence (POP), and the volume of traffic should be low enough to fit into the free tier.

There are a number of ways you could set this up, but I think the simplest would be to put an index.html into an S3 bucket, and serve that through CloudFront. This is outlined in detail here. Your index.html should simply redirect the user to the target URL. If it is unlikely to change, then you can set long TTL values in CloudFront to maximize the number of requests that will be served from cache.

Note that Origin Access Identities specified in the article linked above have been superseded by Origin Access Control .

AWS
전문가
Paul_L
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠