I have a normal s3 bucket (not set up to serve a static website) and cloudfront.
I want to make it so that any request that is not for a specific resource serves the same default index.html
file. Is this correct/
In other words, requests to
www.example.com/file.jpg -> returns file.jpg
www.example.com/ -> returns index.html
www.example.com/thing/test -> *the same index.html file as above*
Is there a way to map a wildcard for all non-matched paths like this?
This answer almost addresses the point but I do not have a "static" domain so I am not sure how I can use this.
I appreciate any input