Redirect Domain To LinkedIn Profile Page

0

Looking to redirect my aws hosted domain to my LinkedIn profile page.

I have tried this: Is there a way to redirect an apex domain to another domain using Amazon S3 and Amazon Route 53? (https://aws.amazon.com/premiumsupport/knowledge-center/redirect-domain-route-53/)

thatguy
질문됨 2년 전755회 조회
3개 답변
1

One additional option is to use a CloudFront function to do the redirect. It is pretty straightforward. Here is an example of how to accomplish this using a CloudFront function.

https://docs.amazonaws.cn/en_us/AmazonCloudFront/latest/DeveloperGuide/functions-tutorial.html

In the example above, replace the location response header (line 9) with the URL to your LinkedIn profile.

I should add, this option does not require any Route53 magic. Just create your Route53 CNAME record to point your personal domain to the CloudFront domain name, and then follow the steps in the tutorial I linked above.

profile pictureAWS
답변함 2년 전
profile picture
전문가
검토됨 4달 전
0

The methods you mentioned are all using CNAME. It is used when you own both domain names. But I guess you are not the owner of linkedin.com. So they won't work for you.

Instead, you can use client script redirect or HTTP redirect.


Client script redirect:

You can host your website on S3 (https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteHosting.html)

Configure route53 to route your domain name to the S3 bucket (https://docs.aws.amazon.com/AmazonS3/latest/userguide/website-hosting-custom-domain-walkthrough.html)

And then in your website, use javascript to redirect user to the URL you want (https://www.w3schools.com/howto/howto_js_redirect_webpage.asp)

This is the cheapest way.


If you don't want to use javascript, using HTTP redirect also works, you can use ALB to achieve that (https://aws.amazon.com/premiumsupport/knowledge-center/route-53-redirect-to-another-domain/#Redirecting_domain_names_or_redirecting_from_HTTP_to_HTTPS_using_an_Application_Load_Balancer)

답변함 2년 전
  • They are able to redirect directly in S3 so they need only make an S3 bucket of the same name as their domain and configure it to redirect to their LinkedIn page. The next step is to hook up their bucket with an A (Alias) as an apex record in Route 53.

  • Thanks Richard. While non of those methods call out cname specifically, you are correct that linkedin is not mine. This seems to be why I can't name the bucket linkedin.com. I'm beyond needing AWS for dummies and submitted this to a friend. I'll share your feedback and in the future, I'll advise anybody that isn't an expert or training to use a different registrar.

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

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

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

관련 콘텐츠