How to enable URLs ending without a trailing slash on S3 and Cloudfront?

I’ve hosted my page on S3, and it ends with a trailing slash, for example, the URL is ‘example.com/post/post-1/’. How can I enable both URLs to work, ‘example.com/post/post-1’ and ‘example.com/post/post-1/’?
This is crucial for us as my company previously used ‘example.com/post/post-1’, and there are some cross-links now that don’t work.

Is there any way to resolve this?
Thank you.

This should not be an issue, any web server I know about will handle that.

See these two URLs, both work without issues. The server will redirect 1 → 2.

  1. https://zen-demo.xdeb.org/misc
  2. https://zen-demo.xdeb.org/misc/

The same question was asked 25 days ago:

Nothing has changed since then, I think.

I still hope this feature will be implemented. :slightly_smiling_face: