# Force non-www to www redirect

**URL:** https://meta.discourse.org/t/force-non-www-to-www-redirect/124181
**Category:** Support
**Created:** [7월 28, 2019, 11:43오전 UTC](https://meta.discourse.org/t/force-non-www-to-www-redirect/124181 "2019-07-28T11:43:33Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Matheeus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/matheeus/32/121527_2.png) [@Matheeus](https://meta.discourse.org/u/Matheeus)
#### Post date: [7월 28, 2019, 11:43오전 UTC](https://meta.discourse.org/t/force-non-www-to-www-redirect/124181/1 "2019-07-28T11:43:33Z")

</div>

Hello,  
I have a site with only a Discourse installation on it (don’t plan to have anything more than the forum).

Now I want to redirect the non-www domain to www.domain.it but also if I reconfigured Discourse via ./discourse-setup changing hostname to www.domain.it if I go to non-www I don’t get redirected but I get an SSL error (Chrome’s NET::ERR\_CERT\_COMMON\_NAME\_INVALID).

How I can resolve this?

I’m on a DigitalOcean Discourse Droplet with Discourse 2.2.0 beta1 on Ubuntu 18.04.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [7월 28, 2019, 12:21오후 UTC](https://meta.discourse.org/t/force-non-www-to-www-redirect/124181/2 "2019-07-28T12:21:24Z")

</div>

If the request comes to http (not https) it works right now. It’s possible to search here and find some topics about having let’s encrypt support multiple domains.

The easy way is [https://www.forcewww.com/](https://www.forcewww.com/)

---

<div class="post-metadata">

### Author: ![Matheeus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/matheeus/32/121527_2.png) [@Matheeus](https://meta.discourse.org/u/Matheeus)
#### Post date: [7월 28, 2019, 4:12오후 UTC](https://meta.discourse.org/t/force-non-www-to-www-redirect/124181/3 "2019-07-28T16:12:20Z")

</div>

Now I noticed that [http://domain.it](http://domain.it) redirects to [https://www.domain.it](https://www.domain.it) but [https://domain.it](https://domain.it) doesn’t.

Is there another way than forcewww?

---

<div class="post-metadata">

### Author: ![michaeld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michaeld/32/1594_2.png) [@michaeld](https://meta.discourse.org/u/michaeld)
#### Post date: [7월 28, 2019, 4:35오후 UTC](https://meta.discourse.org/t/force-non-www-to-www-redirect/124181/4 "2019-07-28T16:35:47Z")

</div>

Can you please PM me with the name of your domain? forcewww should be redirecting https as well.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [1월 27, 2023, 4:19오전 UTC](https://meta.discourse.org/t/force-non-www-to-www-redirect/124181/9 "2023-01-27T04:19:29Z")

</div>



---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [1월 27, 2023, 12:07오후 UTC](https://meta.discourse.org/t/force-non-www-to-www-redirect/124181/10 "2023-01-27T12:07:08Z")

</div>


