# Site ficou em branco ao transferir de non www para www

**URL:** https://meta.discourse.org/t/website-went-blank-when-transferring-from-non-www-to-www/109496
**Category:** Support
**Created:** [Fevereiro 18, 2019, 10:27pm UTC](https://meta.discourse.org/t/website-went-blank-when-transferring-from-non-www-to-www/109496 "2019-02-18T22:27:34Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![thegurjyot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thegurjyot/32/120516_2.png) [@thegurjyot](https://meta.discourse.org/u/thegurjyot)
#### Post date: [Fevereiro 18, 2019, 10:27pm UTC](https://meta.discourse.org/t/website-went-blank-when-transferring-from-non-www-to-www/109496/1 "2019-02-18T22:27:34Z")

</div>

I am trying to redirect my `domain.com` to `www.domain.com` using the process mentioned here.

> [@(Superseded) Redirect additional domain(s) to your Discourse instance](https://meta.discourse.org/t/redirect-single-multiple-domain-s-to-your-discourse-instance/18492):
>
> warning 2024-04-09 @pfaffman edited this to say that this is no longer necessary, as the current NGINX config in the [standard install](https://meta.discourse.org/t/142537?silent=true) redirects everything to https://HOSTNAME. You can test this by entering your IP address and see that it gets redirected. If you want multiple domains pointed to your server, you probably want them to have valid https certificates. To do that, follow instructions at [Set up Let’s Encrypt with multiple domains / redirects](https://meta.discourse.org/t/set-up-let-s-encrypt-with-multiple-domains-redirects/56685). So you want to redirect domain(s) to yo…

But as I rebuild the app and visited my website, the website did open with www but the website is a complete blank. A clean white tab is opening with nothing on it. I checked the developer console and found a lot of warnings and content security policy notices.  
​  
Can someone tell what the issue is? A good member of this community also suggested me to directly host the website on `www.domain.com` instead of `domain.com` but that opened some new issues with `email@www.domain.com` which I do not want. So how to redirect `domain.com` to `www.domain.com`? After this, I’ll head towards Let’s Encrypt SSL and how to manage redirections after that?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [Fevereiro 18, 2019, 10:48pm UTC](https://meta.discourse.org/t/website-went-blank-when-transferring-from-non-www-to-www/109496/2 "2019-02-18T22:48:27Z")

</div>

You need a DNS registrar that can do a DNS redirect from the apex domain `example.com` to a subdomain `www.example.com`

It has different names, FWD record, “web forward” etc but it is best handled by your DNS provider.

[https://community.cloudflare.com/t/root-domain-redirect-to-www/18265](https://community.cloudflare.com/t/root-domain-redirect-to-www/18265)

---

<div class="post-metadata">

### Author: ![thegurjyot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thegurjyot/32/120516_2.png) [@thegurjyot](https://meta.discourse.org/u/thegurjyot)
#### Post date: [Fevereiro 18, 2019, 11:02pm UTC](https://meta.discourse.org/t/website-went-blank-when-transferring-from-non-www-to-www/109496/3 "2019-02-18T23:02:36Z")

</div>

So the process linked above is of no use to me and I should revert it or keep it? And lastly, after this setup, should I follow Discourse’s Let’s Encrypt tutorial or Cloudflare SSL?  
Sorry to ask so many questions but I am doing all of this first time and I am quite overwhelmed with all this new information.

---

<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: [Março 15, 2022, 3:11am UTC](https://meta.discourse.org/t/website-went-blank-when-transferring-from-non-www-to-www/109496/4 "2022-03-15T03:11:37Z")

</div>


