In this tutorial, we will discuss solving this issue with the options provides under the S3 configuration. Also, provide you with instructions to fix this issue for the users using the Cloudfront. Go to the application S3 bucket -> Properties -> Static website hosting and set the Error document as showing in below image:

Edit the Cloudfront -> Error pages. Now create a custom error response for 404 to index.html. You can also do the same for the 403 error code.

Conclusion

S3   Cloudfront  404 Error on Page Reload  Resolved    TecAdmin - 49S3   Cloudfront  404 Error on Page Reload  Resolved    TecAdmin - 4


title: “S3 Cloudfront 404 Error On Page Reload Resolved Tecadmin” ShowToc: true date: “2022-11-15” author: “Johnathon Clynes”


In this tutorial, we will discuss solving this issue with the options provides under the S3 configuration. Also, provide you with instructions to fix this issue for the users using the Cloudfront. Go to the application S3 bucket -> Properties -> Static website hosting and set the Error document as showing in below image:

Edit the Cloudfront -> Error pages. Now create a custom error response for 404 to index.html. You can also do the same for the 403 error code.

Conclusion

S3   Cloudfront  404 Error on Page Reload  Resolved    TecAdmin - 64S3   Cloudfront  404 Error on Page Reload  Resolved    TecAdmin - 66