App engine – Naked domain redirect to “www”

domain-name-systemgoogle-app-enginehttps

I set up my domain with SSL certificate on Google Appengine: https://www.ltc-x.de/

Everything is working fine for the www subdomain.

Now I want to get the naked domain to work as well. So if someone types in just ltc-x.de they should be redirected to www.ltc-x.de,

I followed this instructions, but I always get an error when I try to save the forward:
enter image description here

The error in German is, “Serverfehler: Wir können ihre anfrage derzeit leider nicht bearbeiten, bitte versuchen Sie es später erneut.” Which in English translates to “Server Error: We can currently unable to process your request, please try again later.”

I already contacted the support, but they were not very helpful.

My A-records look like this:
enter image description here

Is there something I am doing wrong here? Did someone experience similar behaviour and is there a way to get this working?

Edit:

Sorry, I missed one entry on the screenshot. It looks like this:

@BillThor: Are you sure I need an A and an AAAA entry for the www subdomain as well? Because currently I only have the CNAME entry for the www domain and it works.
enter image description here

Best Answer

For HTTPS you will need an alternate subject name for the bare domain on your SSL certificate. This will prevent errors resulting from the certificate name not matching the requested domain.

In DNS you only need to ensure that the bare domain and your www domain have the same address(es) A and AAAA addresses. Your snapshot of the DNS panel is missing the names. For www and the bare domain (@), you need one A record and one AAAA record each. www is the name for the www address. You can use @ or the bare domain ending with a dot (example.com.) as the name for the bare domain.