In single page applications, usually, there\'s routing mechanism used where all the content is kept in index.html and Javascript manages URL addressing by showing t
index.html
You can redirect all 4XX errors to index.html by putting it in the error document config under Static website hosting.
4XX
ref: https://serverless-stack.com/chapters/create-an-s3-bucket.html#enable-static-web-hosting