I have uploaded my HUGO static site into AWS S3 Bucket. I have also added the domain in cloudrfront.
The home index.html page works fine, but I cannot access my resources.
https://www.example.com works fine, but I cannot access
https://www.example.com/posts/. I have to redirect links to the html file every time.
https://www.example.com/posts/ displays automatically the page ( without redirecting
Is there some property in cloudfront or Amazon S3 to replicate the behaviour of localhost and not have to change the links of the site?