Redirect To A Github Repo From A Top Level Domain

Pavol Kutaj
Mar 27, 2021

--

usecase

The aim of this how-to-guide🏁 is to show redirection from a TLD into a GH repo.

  • In S3, create an empty bucket example.com
  • NOTE: it has be identical to the domain name you want to use
  • In Properties -> Static Website Hosting → set Redirect all requests togithub.com/example/example
  • Test if it works just by clicking on the bucket endpoint
  • Open Route53 → Create Hosted Zone → enter example.com into Domain Name → finalize registration
  • RULE: Domain Name has to be identical to the S3 bucket name
  • Create an A record example.com
  • Enable alias, and set alias target to the example.com bucket

--

--

No responses yet