I'm using SharePoint 2016.
I would like to enable and force redirect to HTTPS, and I have followed this solution https://sharepoint.stackexchange.com/a/209004/20605 and seems to work fine when users access the SharePoint site from the "main" URL like http://myportal.mydomain.tld. They are automatically redirected to https://myportal.mydomain.tld.
I've noticed a problem with users that are using bookmarks saved with HTTP protocol: SharePoint is prompting authentication from HTTP and serve the page on HTTP when the user log in.
Then, when the user returns to the home page, the HTTPS redirect works and a new authentication panel is prompted.
My goal is to immediately redirect user from HTTP to HTTPS and, eventually, prompt the authentication panel. How can I immediately redirect to HTTPS?
PS: I've also tried some solutions with URL Rewrite in IIS, but these methods are always returning TOO_MANY_REDIRECTS error.