# Problem with redirecting http to https when using internet explorer

**URL:** https://discourse.haproxy.org/t/problem-with-redirecting-http-to-https-when-using-internet-explorer/4561
**Category:** Help!
**Created:** [November 26, 2019, 4:50pm UTC](https://discourse.haproxy.org/t/problem-with-redirecting-http-to-https-when-using-internet-explorer/4561 "2019-11-26T16:50:29Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![password](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@password](https://discourse.haproxy.org/u/password)
#### Post date: [November 26, 2019, 4:50pm UTC](https://discourse.haproxy.org/t/problem-with-redirecting-http-to-https-when-using-internet-explorer/4561/1 "2019-11-26T16:50:29Z")

</div>

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):

```auto
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?

---

<div class="post-metadata">

### Author: ![Baptiste](https://avatars.discourse-cdn.com/v4/letter/b/cab0a1/32.png) [@Baptiste](https://discourse.haproxy.org/u/Baptiste)
#### Post date: [November 27, 2019, 6:05am UTC](https://discourse.haproxy.org/t/problem-with-redirecting-http-to-https-when-using-internet-explorer/4561/2 "2019-11-27T06:05:37Z")

</div>

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?
