I am pretty new to Apache2 and DNS so I'm hoping to find help here. I have a Domain i purchased and want to achieve the following: example.com leads to my homepage (that works), discord.example.com and dc.example.com both redirect the user to a https://discord.gg/1234567abc link.
I found the option to do this using the 301 Redirect settings on the control panel of my domain provider. However, it only works when visited using http://. https:// throws an error.
Do i have to create a new VirtualHost with SSL cert for discord.example.com with dc.example.com as alias and manage the redirect in the configuration there?
Thanks!