# V2.2.8 Global redirect www to non-www with http to https

**URL:** <https://community.traefik.io/t/v2-2-8-global-redirect-www-to-non-www-with-http-to-https/7428>\
**Category:** Traefik v2\
**Tags:** letsencrypt-acme, middleware\
**Created:** [August 26, 2020, 8:55pm UTC](https://community.traefik.io/t/v2-2-8-global-redirect-www-to-non-www-with-http-to-https/7428 "2020-08-26T20:55:51Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![zespri](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/zespri/32/310_2.png) [@zespri](https://community.traefik.io/u/zespri)\
**Post date:** [August 31, 2020, 7:05am UTC](https://community.traefik.io/t/v2-2-8-global-redirect-www-to-non-www-with-http-to-https/7428/4 "2020-08-31T07:05:01Z")

</div>

According to the [documentation](https://docs.traefik.io/getting-started/configuration-overview/#the-static-configuration):

> There are three different, **mutually exclusive** (e.g. you can use only one at the same time), ways to define static configuration options in Traefik:
> 
> 1. In a configuration file
> 2. In the command-line arguments
> 3. As environment variables

You seem to mix command line and configuration file, could you please fix, re-test, and post updated configs. Thanks you in advance!

---

_[View the full topic](https://community.traefik.io/t/v2-2-8-global-redirect-www-to-non-www-with-http-to-https/7428)._
