Problem with redirecting http to https when using internet explorer

I have a problem with Haproxy, it won’t redirect HTTP to HTTPS if using Internet Explorer, it just tells me that this webpage doesn’t exist if I’m trying to connect over http.

My configuration (real website name is changed):

acl somewebsite.com_acl hdr(host) -i somewebsite.com
use_backend website if somewebsite.com_acl

backend website
        server someserver 10.0.1.50:80
        reqirep  ^(GET|POST|HEAD)\ /(.*)     \1\ /\2
        reqidel ^Host:.*
        reqadd Host:\ www.somewebsite.com
        redirect scheme https code 301 if !{ ssl_fc }

IE version: 11.805.17763.0
haproxy version: 1.8.21 2019/08/16

There are no problems with Chrome, Firefox or Edge.

Anyone know what’s causing this problem?

Hi

What is the purpose of the reqirep command?

You can replace the Host manipulation with a single command now:

http-request set-header Host www.smoewebsite.com

What does curl says when you issue give it a try?
What is the corresponding HAProxy log line?