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.For example 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.
On localhost https://www.example.com/posts/
displays automatically the page ( without redirecting https://www.example.com/posts/
to https://www.example.com/posts/index.html
.
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?