# Help with URLs not working on Chrome

**URL:** https://meta.discourse.org/t/help-with-urls-not-working-on-chrome/358377
**Category:** Support
**Created:** [March 21, 2025, 7:16pm UTC](https://meta.discourse.org/t/help-with-urls-not-working-on-chrome/358377 "2025-03-21T19:16:23Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![alltiagocom](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alltiagocom/32/492709_2.png) [@alltiagocom](https://meta.discourse.org/u/alltiagocom)
#### Post date: [March 21, 2025, 7:16pm UTC](https://meta.discourse.org/t/help-with-urls-not-working-on-chrome/358377/1 "2025-03-21T19:16:23Z")

</div>

I know this is not directly related to Discourse, but since it’s my forum using Discourse, here it is:  
I’m trying to make sure that all versions of a URL work and direct people to my forum. Those versions are:

```plaintext
http://domain.com
http://www.domain.com
https://domain.com
https://www.domain.com
www.domain.com
domain.com

```

These versions are not working, when Chrome is set to incognito:

```plaintext
http://www.domain.com
www.domain.com

```

I get this:

 ![image](https://global.discourse-cdn.com/meta/original/4X/4/b/d/4bda3c5f35bffd282d2fee0a6a2f5b399e155433.png)

I’m using Cloudflare and I already created a Rule to redirect domains, suggested by ChatGPT (since I’m not an expert), but it’s not working.

Any suggestions of what might be causing this?  
This is a subdomain like `forum.domain.com`, not sure if that’s the issue?  
Because if I use the same format, but with the main domain `domain.com`, it works.

I know this is a very specific scenario, but I would like to make sure that all options in all browser “states” are covered.

Thank you!

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [March 21, 2025, 9:13pm UTC](https://meta.discourse.org/t/help-with-urls-not-working-on-chrome/358377/3 "2025-03-21T21:13:31Z")

</div>

This guide should help to setup additional domains with let’s encrypt: [Set up Let’s Encrypt with multiple domains / redirects](https://meta.discourse.org/t/set-up-let-s-encrypt-with-multiple-domains-redirects/56685).

As for the redirection, it’s handled automatically:

> <https://github.com/discourse/discourse_docker/blob/master/templates/web.ssl.template.yml#L11>

---

<div class="post-metadata">

### Author: ![alltiagocom](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alltiagocom/32/492709_2.png) [@alltiagocom](https://meta.discourse.org/u/alltiagocom)
#### Post date: [March 21, 2025, 10:32pm UTC](https://meta.discourse.org/t/help-with-urls-not-working-on-chrome/358377/4 "2025-03-21T22:32:01Z")

</div>

I will check this tomorrow, but what I don’t get is that everything works on Chrome and Safari, for example, but in incognito in Chrome, those 2 versions don’t work. So the certificate seems to be working, the one that Cloudflare offers by default. Or am I missing something here?

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [March 22, 2025, 2:37am UTC](https://meta.discourse.org/t/help-with-urls-not-working-on-chrome/358377/5 "2025-03-22T02:37:35Z")

</div>

You can let Discourse handle the domain and certificate by following the guide above.

Or, since you’re using Cloudflare, you can also create a redirection from `www.domain.com` to `domain.com`; see this tutorial : [https://community.cloudflare.com/t/redirect-www-example-com-to-example-com-using-single-dynamic-redirects/636764](https://community.cloudflare.com/t/redirect-www-example-com-to-example-com-using-single-dynamic-redirects/636764).

 ![The image shows a web configuration interface with options to create rules for redirecting HTTP to HTTPS and from the WWW subdomain to the root, both marked as beta features. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/6/7/0/670a9a6fea3c168230209959426cfff3552f0298.png)

---

<div class="post-metadata">

### Author: ![alltiagocom](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alltiagocom/32/492709_2.png) [@alltiagocom](https://meta.discourse.org/u/alltiagocom)
#### Post date: [March 22, 2025, 8:49am UTC](https://meta.discourse.org/t/help-with-urls-not-working-on-chrome/358377/6 "2025-03-22T08:49:15Z")

</div>

Thank you for the link.

Following their first instructions, I’m creating this:

 ![image](https://global.discourse-cdn.com/meta/original/4X/2/d/1/2d1a916d986f752f6bb3e54ab395daf653d107d1.png)

Their instructions were for the main domain, not a sub domain, so I guess I’m doing it right?

When I save, I see this warning icon with this message. Is this normal?

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/f/b/efb333a240841d700b89392e7bf30853feac5a0b.png)

Then I go to the rules:

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/7/a/b7a1a10c0084b5347a28035eac099531b239559c.png)

Is this how it’s supposed to look like? And does this rule affect when the url has something after the `/`? For example `forum.alltiago.com/tags`?

They mention that this can take up to an hour to reflect the changes, so I will wait. Let me know if there’s something I missed.

Thank you!

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [March 22, 2025, 2:08pm UTC](https://meta.discourse.org/t/help-with-urls-not-working-on-chrome/358377/7 "2025-03-22T14:08:14Z")

</div>

Oh, you’re already using a _forum_ subdomain.

You see this warning about SSL because the **free** Universal SSL certificate provided by Cloudflare covers only one subdomain level. It won’t work on `www.forum.domain.com`.

I think it’s easier to follow the guide in my first message and let discourse/let’s encrypt (for free) handle `www.forum.`.  
What you should do:

- Remove that page redirection rule
- Removes the AAAA DNS record with `100::`
- If you have an existing DNS record `www.forum` to an IP, remove it
- Creates a CNAME record `www.forum` to `forum.alltiago.com` **DNS Only** (no proxy)
- Then, follow the [guide](https://meta.discourse.org/t/set-up-let-s-encrypt-with-multiple-domains-redirects/56685), e.g.:  
 ![The image shows a code snippet with hooks for modifying file and variable names in a script, used to obfuscate paths involving sensitive information to prevent reverse engineering. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/6/9/9/69906bca6771afc658566d4b4ed6fe26702e0640.png)
- Rebuild, and you’re done!

This way:

- any HTTP request redirects to `https://forum.alltiago.com`
- `www.forum.alltiago.com` redirects to `forum.alltiago.com`

I tested myself on my side, and it’s working great.

---

<div class="post-metadata">

### Author: ![alltiagocom](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alltiagocom/32/492709_2.png) [@alltiagocom](https://meta.discourse.org/u/alltiagocom)
#### Post date: [March 22, 2025, 3:11pm UTC](https://meta.discourse.org/t/help-with-urls-not-working-on-chrome/358377/8 "2025-03-22T15:11:06Z")

</div>

> [@Arkshine](#):
>
> If you have an existing DNS record `www.forum` to an IP, remove it

The only things with the word forum (I deleted the AAAA already):

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/e/d/eed02837f2045ba119d39d88b8f0149cc0caacc5.png)

> [@Arkshine](#):
>
> Creates a CNAME record `www.forum` to `forum.alltiago.com` **DNS Only** (no proxy)

When I try to create it I get this:

 ![image](https://global.discourse-cdn.com/meta/original/4X/f/1/f/f1f8e2727efbe7e2ac5c88ee84b61c4334690d15.png)

I guess I will have to delete the A record with the name `www.forum`? If so, what about the other A record?

> [@Arkshine](#):
>
> Then, follow the [guide](https://meta.discourse.org/t/set-up-let-s-encrypt-with-multiple-domains-redirects/56685)

I will check that. Let’s see if I can follow it…

What’s weird is that for example `http://www.forum.alltiago.com` works when Chrome is _not_ in incognito, but stops working when it is.  
`www.forum.alltiago.com` doesn’t work on any of those.

> [@Arkshine](#):
>
> discourse/let’s encrypt

I didn’t know Discourse comes with a certificate?  
What would be the difference in using that vs Let’s Encrypt?  
As a starter on everything Discourse, I’m trying to work with what brings less complexity so I don’t get too confused. If Discourse can handle that, awesome. I would still like to understand why pick one over the other, if you don’t mind sharing?

Thanks!

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [March 22, 2025, 3:23pm UTC](https://meta.discourse.org/t/help-with-urls-not-working-on-chrome/358377/9 "2025-03-22T15:23:09Z")

</div>

> [@alltiagocom](#):
>
> The only things with the word forum (I deleted the AAAA already):

> [@alltiagocom](#):
>
> I guess I will have to delete the A record with the name `www.forum`? If so, what about the other A record?

Yes, remove the one with an A record; use CNAME instead.

> [@alltiagocom](#):
>
> I will check that. Let’s see if I can follow it…

Just enter your domain in the input, then copy-paste the whole output into your app.yml config file, as I showed you in the screenshot! Be careful with the indentation!

> [@alltiagocom](#):
>
> What’s weird is that for example `http://www.forum.alltiago.com` works when Chrome is _not_ in incognito, but stops working when it is.

Are you sure Chrome doesn’t automatically remove www, which you overlooked? I don’t see other explanations.

> [@alltiagocom](#):
>
> I didn’t know Discourse comes with a certificate?

No, no. Discourse uses [Let’s Encrypt](https://letsencrypt.org/)! Sorry for the confusion. That’s why, you should use it, it’s free and easy.

---

<div class="post-metadata">

### Author: ![alltiagocom](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alltiagocom/32/492709_2.png) [@alltiagocom](https://meta.discourse.org/u/alltiagocom)
#### Post date: [March 22, 2025, 3:28pm UTC](https://meta.discourse.org/t/help-with-urls-not-working-on-chrome/358377/10 "2025-03-22T15:28:51Z")

</div>

> [@Arkshine](#):
>
> Yes, remove the one with an A record; use CNAME instead.

But both A records or just the one with the `www.forum` name?

> [@Arkshine](#):
>
> Just enter your domain in the input, then copy-paste the whole output into your app.yml config file, as I showed you in the screenshot! Be careful with the indentation!

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/d/3/7d3b2ca8a0196bbdef16b73499d1efed19aec71c.png)

Like this?

> [@Arkshine](#):
>
> Are you sure Chrome doesn’t automatically remove www,

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/f/1/7f11fb13c50ad4529b70cdc1c94d98e887b981de.png)

> [@Arkshine](#):
>
> No, no. Discourse uses [Let’s Encrypt](https://letsencrypt.org/)! Sorry for the confusion. That’s why, you should use it, it’s free and easy.

So I still need to create an account with Let’s Encrypt?  
I remember when I was installing Discourse, one of the optional steps at the bottom of the instructions was to install Let’s Encrypt but I haven’t yet. So maybe after all of this is done, which I believe it is now, I should check those instructions, right?

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [March 22, 2025, 3:33pm UTC](https://meta.discourse.org/t/help-with-urls-not-working-on-chrome/358377/11 "2025-03-22T15:33:17Z")

</div>

> [@alltiagocom](#):
>
> But both A records or just the one with the `www.forum` name?

The one with `www.forum`. You want to replace A to CNAME record.  
`www.forum` → `forum.alltiago.com`  
Remember, no proxy!

> [@alltiagocom](#):
>
> Like this?

The guide is for _additional_ domains!  
So, you want to add `www.forum.alltiago.com` instead.  
`forum.alltiago.com` is already being handled by default.

Otherwise, the location and indentation seems correct.

> [@alltiagocom](#):
>
> So I still need to create an account with Let’s Encrypt?

You have nothing to do! Just add the additional domain, rebuild.  
Let’s encrypt will issue a certificate automatically.

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [March 22, 2025, 4:40pm UTC](https://meta.discourse.org/t/help-with-urls-not-working-on-chrome/358377/12 "2025-03-22T16:40:33Z")

</div>

Additionally, if you haven’t seen it yet, you might find this Cloudflare guide helpful: [https://meta.discourse.org/t/using-discourse-with-cloudflare-best-practices](https://meta.discourse.org/t/using-discourse-with-cloudflare-best-practices)

---

<div class="post-metadata">

### Author: ![alltiagocom](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alltiagocom/32/492709_2.png) [@alltiagocom](https://meta.discourse.org/u/alltiagocom)
#### Post date: [March 22, 2025, 4:43pm UTC](https://meta.discourse.org/t/help-with-urls-not-working-on-chrome/358377/13 "2025-03-22T16:43:17Z")

</div>

Too much “excitement” for a single day hahaha  
But I saved that page for future reference.  
Thanks! 💪

---

<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: [April 21, 2025, 4:43pm UTC](https://meta.discourse.org/t/help-with-urls-not-working-on-chrome/358377/14 "2025-04-21T16:43:28Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
