I want to redirect / forward https://example.com
second-level-domain to https://www.example.com
subdomain without having a SSL certificate on registrar itself (but on own server).
My problem is, that I don't have a static ip, so can't use a A-Record / AAAA-Record, only a DynDNS Address. Also tried Alias / A-Name, but they only redirect SLD to SLD. Simple forward does not consider SSL, only simple http. I would also be satisfied, by redirecting it via own server, but SLD cannot be forwarded to my server anyway, as it has to be connected via the dynamic dns service (which has subdomain only).
(Having namecheap as registrar and DynDns)