Www funktioniert – Apex-Stammdomain nicht

Ich habe Discourse mit dem Standard-Hosting von Discourse.org eingerichtet.

Discourse ist auf der Root-Domain konfiguriert: https://www.worldcitizen.io
https://www. funktioniert, aber https:// nicht.

https://www.worldcitizen.io leitet korrekt zur Discourse-Installation mit einem Let’s Encrypt-Zertifikat weiter. https://worldcitizen.io hingegen zeigt einen NET::ERR_CERT_COMMON_NAME_INVALID-Fehler an und leitet auf eine Seite von discourse.org um, auf der steht: „Sorry, the site you are looking for does not exist." (Entschuldigung, die gesuchte Seite existiert nicht). Die Domain https://worldcitizen.io bleibt jedoch in der Adressleiste sichtbar, wird aber als unsicher markiert, da sie ein Zertifikat von .discourse.org verwendet.

Die Domain ist bei DreamHost registriert, die DNS-Einstellungen laufen jedoch über Cloudflare, um CNAME-Flattening zu ermöglichen – dies erlaubt es, Discourse auf der Root-Domain zu betreiben.

Ich habe in Cloudflare zwei DNS-Einträge konfiguriert:

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

Früher lief die Domain über einen anderen Dienst, der automatisch SSL-Zertifikate für die Domain über Let’s Encrypt eingerichtet hat. Könnte das derzeit zu einem Konflikt führen? Ist https:// einfach nicht korrekt auf Discourse umgeleitet, oder liegt ein anderes Problem in meiner Konfiguration vor?

Jede Hilfe wird sehr geschätzt. Vielen Dank!

1 „Gefällt mir“

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 „Gefällt mir“

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 „Gefällt mir“

Setup the cloudflare rule as:

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

3 „Gefällt mir“

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

3 „Gefällt mir“