# Traefik redirect incorrectly changing to https

**URL:** <https://community.traefik.io/t/traefik-redirect-incorrectly-changing-to-https/18123>\
**Category:** Traefik v2\
**Tags:** docker\
**Created:** [April 3, 2023, 5:13am UTC](https://community.traefik.io/t/traefik-redirect-incorrectly-changing-to-https/18123 "2023-04-03T05:13:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gibbz](https://avatars.discourse-cdn.com/v4/letter/g/dc4da7/32.png) [@Gibbz](https://community.traefik.io/u/Gibbz)\
**Post date:** [April 3, 2023, 5:13am UTC](https://community.traefik.io/t/traefik-redirect-incorrectly-changing-to-https/18123/1 "2023-04-03T05:13:11Z")

</div>

Im trying to redirect from the local server ip (192.168.1.3) or the hostname (pi.local) to the node-red dashboard (pi.local:1880/ui).

My setup used to work, however its now trying to add in 'https' instead of 'http' to my url. So fails to load any webpage... Any ideas how to force this back to http?

Traefik.yml

```auto
# Log level INFO|DEBUG|ERROR
log:
  level: DEBUG

api:
  dashboard: true
  insecure: true

entryPoints:
  http:
    address: ":80"

  traefik:
    address: ":8089"

  web:
    address: ":8081"
    http:
      redirections:
        entryPoint:
          to: http
          scheme: http

providers:
  docker:
    endpoint: "unix:///var/run/docker.sock"
    exposedByDefault: false
  file:
    filename: /config.yml

```

My config.yml

```auto
http:
  routers:
    nodered:
      rule: "Host(`pi.local`) || Host(`192.168.1.3`)"
      middlewares:
        - add-ui
      service: nodered

  services:
    nodered:
      loadBalancer:
        servers:
          - url: "http://192.168.1.3:1880"

  middlewares:
    add-ui:
      addPrefix:
        prefix: "/ui"

```

---

<div class="post-metadata">

**Author:** ![bluepuma77](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bluepuma77](https://community.traefik.io/u/bluepuma77)\
**Post date:** [April 3, 2023, 11:17am UTC](https://community.traefik.io/t/traefik-redirect-incorrectly-changing-to-https/18123/2 "2023-04-03T11:17:56Z")

</div>

I had the issue that I used a https route once and wanted to go back to http, but somehow the browser remembered the more secure https connection and wouldn’t let me.

Check browsers developer tools network tab and try clearing cache and try incognito mode.

---

<div class="post-metadata">

**Author:** ![Gibbz](https://avatars.discourse-cdn.com/v4/letter/g/dc4da7/32.png) [@Gibbz](https://community.traefik.io/u/Gibbz)\
**Post date:** [April 10, 2023, 6:15am UTC](https://community.traefik.io/t/traefik-redirect-incorrectly-changing-to-https/18123/3 "2023-04-10T06:15:05Z")

</div>

Yeah after playing around, this is a issue on firefox mobile.... I'll have to try and find a fix for it...
