# How to choose HTTP2HTTPS

**URL:** <https://community.traefik.io/t/how-to-choose-http2https/6990>\
**Category:** Traefik v2\
**Tags:** cli, docker, middleware\
**Created:** [July 20, 2020, 6:49am UTC](https://community.traefik.io/t/how-to-choose-http2https/6990 "2020-07-20T06:49:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chooop](https://avatars.discourse-cdn.com/v4/letter/c/e56c9b/32.png) [@chooop](https://community.traefik.io/u/chooop)\
**Post date:** [July 20, 2020, 6:49am UTC](https://community.traefik.io/t/how-to-choose-http2https/6990/1 "2020-07-20T06:49:10Z")

</div>

I find confusing that there are 2 options:

```auto
      - traefik.http.routers.http-catchall.middlewares=redirect-to-https@docker
      - traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https

```

```auto
     - "--entrypoints.web.http.redirections.entrypoint.to=websecure"
     - "--entrypoints.web.http.redirections.entrypoint.scheme=https"

```

Which one is better? Are those equivalent?

---

<div class="post-metadata">

**Author:** ![ldez](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/ldez/32/5_2.png) [@ldez](https://community.traefik.io/u/ldez)\
**Post date:** [July 20, 2020, 9:42am UTC](https://community.traefik.io/t/how-to-choose-http2https/6990/2 "2020-07-20T09:42:35Z")

</div>

Hello,

if you want to apply the redirection on all your services, the second is better.

Yes the both are globally equivalent.
