Www funziona -- il dominio radice apex no

Ho configurato Discourse utilizzando l’Hosting Standard di Discourse su discourse.org.

Discourse è impostato sul dominio radice: https://www.worldcitizen.io
https://www. funziona, ma https:// no.

https://www.worldcitizen.io reindirizza correttamente alla configurazione di Discourse con un certificato Let’s Encrypt. https://worldcitizen.io invece mostra un errore NET::ERR_CERT_COMMON_NAME_INVALID e reindirizza a una pagina di discourse.org dove si legge: “Spiacenti, il sito che stai cercando non esiste.”, ma nella barra degli indirizzi viene comunque visualizzato il dominio https://worldcitizen.io, indicato come non sicuro poiché utilizza un certificato .discourse.org.

Il dominio è registrato presso DreamHost, ma il DNS è gestito da Cloudflare con l’opzione di appiattimento CNAME (CNAME Flattening), che permette a Discourse di funzionare sul dominio radice.

Ho configurato il DNS su Cloudflare con due record:

CNAME // worldcitizen.io // worldcitizen.hosted-by-discourse.com. // TTL Auto // Solo DNS
CNAME // www // worldcitizen.hosted-by-discourse.com. // TTL Auto // Solo DNS

In precedenza il dominio era gestito da un altro servizio che impostava automaticamente i certificati SSL tramite Let’s Encrypt. Potrebbe essere questo a causare un conflitto ora? Forse https:// non è configurato correttamente per reindirizzare a Discourse? Oppure c’è qualcos’altro di errato nella mia configurazione?

Qualsiasi aiuto è molto apprezzato. Grazie!

1 Mi Piace

You are referring to the apex (bare, root) domain versus the subdomain?

example.com

to

www.example.com

This is something you have to set up via DNS redirects and your DNS control panel – that’s usually done via same website you purchased your domain name from.

2 Mi Piace

Thank you for your quick response.

I just want both the apex root and the subdomain to work.
Shouldn’t the DNS records written above already do that - with CNAMEs for both @ and www?

Or do I need to set up a Forwarding URL in Page Rules on Cloudflare?
https://worldcitizen.io/* // Forwarding URL // 301 - Permanent Redirect // https://www.worldcitizen.io/*

I’m not completely familiar with these things.

1 Mi Piace

Setup the cloudflare rule as:

worldcitizen.io/* 301
https://www.worldcitizen.io/$1

3 Mi Piace

See forcewww.com. It’s designed to solve your problem.

3 Mi Piace