First time poster on serverfault, apologies if this is in the wrong place. I have a website that I am trying to set up on AWS CloudFront. It is currently configured to serve static web content from S3, this is then picked up and served via CloudFront. However, I want all of the requests for rootdomain.com to go to rootdomain.com/blog - and the rest of the requests for that domain to be handled as normal.
From my Googling so far, this seems like something that I could achieve using lambda@edge. However, all of my attempts so far have been unsuccessful.
How do I go about configuring lambda/cf/s3 to achieve what I have laid out above?
Apologies if I have missed anything, thanks very much in advance.