Like a SPA? You use a something like react router and set the S3 error page to your index. I've deployed many SPAs to AWS S3/ Cloudfront. You have to handle the 404 page in app
/login makes me think your website isn't really static.
Regardless, you can use extensionless links with your static website if you rename the file from login.html to login, then change the file metadata to Content-Type: 'text/html'
You can add an error behaviour in cloudfront that defaults the 404 behaviours to the index page.
If you also add the index and error of the S3 config to the same index page it all works perfectly.
We have multiple React sites deployed this way to S3/Cloudfront with react-router and experience no issues.
Here's a SO post https://stackoverflow.com/questions/51218979/react-router-do...