How can I access S3 Root: /
from CloudFront sub directory: https://example.com/foo/ ?
I don't wanna change S3 directory structure (moving /* to /foo/*)
What I've tried
- Use S3 redirection rules: redirected to S3 static hosting url (not CloudFront)
- Use CloudFront Lambda Function Associations: when I rewrite
/foo/*to/*, I get what I wanted on/foo/*but I must place the same contents on/*. (Because it's not routing but url rewriting)