# Absolute Redirection \[Traefik v2.3\]

**URL:** https://community.traefik.io/t/absolute-redirection-traefik-v2-3/7865
**Category:** Traefik v2
**Tags:** middleware
**Created:** [September 24, 2020, 11:54am UTC](https://community.traefik.io/t/absolute-redirection-traefik-v2-3/7865 "2020-09-24T11:54:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![eduardo.barajas](https://avatars.discourse-cdn.com/v4/letter/e/d9b06d/32.png) [@eduardo.barajas](https://community.traefik.io/u/eduardo.barajas)
#### Post date: [September 24, 2020, 11:54am UTC](https://community.traefik.io/t/absolute-redirection-traefik-v2-3/7865/1 "2020-09-24T11:54:50Z")

</div>

Hello

We have set up a middleware in traefik that is working fine, with the next configuration:

```auto
    [http.middlewares]
      [http.middlewares.test-redirectscheme.redirectScheme]
        scheme = "https"
        port = 30443
        permanent = true

```

I'm using Traefik v2.3 as a Reverse Proxy, TLS Offloading an applicattion called [Dashmachine](https://github.com/rmountjoy92/DashMachine). The thing is that Dashmachine do some redirections using **absolute redirection** , so the https scheme and/or the port is overwritten by the application.

In Nginx i have fixed this issue using the next option:

```auto
absolute_redirect off;

```

Is it possible to do it easily with Traefik?

Thank you in advance.

Regards.

P.S: I attach my static and dynamic configuration files:

**static.toml**

```auto
defaultEntryPoints = ["https"]

[log]
level = "DEBUG"

[entryPoints]
  [entryPoints.https]
  address = ":443"

[providers]
  [providers.file]
    filename = "/etc/traefik/proxy-config.toml"

```

**dynamic.toml**

```auto
[http.routers]
  [http.routers.reverse-proxy]
  #rule = "PathPrefix(`/`)"
    rule = "HostRegexp(`{any:.*}`)"
    service = "backend"
    entryPoints = ["https"]
    middlewares = ["test-redirectscheme"]
    [http.routers.reverse-proxy.tls]
      options = "myTLSOptions"

[tls.options]
  [tls.options.myTLSOptions]
    minVersion = "VersionTLS12"

[tls.stores]
  [tls.stores.default]
    [tls.stores.default.defaultCertificate]
      certFile = "/etc/certs/dashmachine.pem"
      keyFile = "/etc/certs/dashmachine.key"

[http.middlewares]
  [http.middlewares.test-redirectscheme.redirectScheme]
    scheme = "https"
    port = 30443
    permanent = true

[http.services]
  [http.services.backend.loadBalancer]
    [[http.services.backend.loadBalancer.servers]]
      url = "http://dashmachine:5000"

```
