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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南