The user Alankrit_Choudh successfully changed their Discourse domain from animeforums.me to discuss.moe but encountered SSL certificate errors when trying to redirect the old domain. pfaffman explained that the old certificate must be configured for the redirect to work, as the SSL connection occurs before redirection. Alankrit_Choudh had a backup of the old certificates and sought guidance on configuring them. pfaffman provided instructions for setting up an Nginx configuration to use the old certificates and redirect traffic. Instead, Alankrit_Choudh opted for a simpler workaround by moving the DNS for animeforums.me to Cloudflare and enabling SSL there, which resolved the issue Alankrit_Choudh.
You need to have the old cert for the old domain name still configured since the redirect happens after the ssl connection is made. If you still have the old cert keys you could configure a web server (probably easiest to make it a different container or even a separate site) to be the old name and redirect to the new one.