Score:0

Redirecting subdomain to another domain

cn flag

I have a subdomain, sub.domain1.com. I want to redirect this to domain2.com.

The result is a security exception because the certificate on domain2.com doesn't include sub.domain1.com.

How does one deal with this redirect issue without adding sub.domain1.com to domain2.com's certificate?

dave_thompson_085 avatar
jp flag
_If_ you mean HTTPS i.e. the web -- which you didn't actually say and is not the only protocol that uses SSL/TLS -- and unless you or your users have truly ancient browsers or defective clients, many (but not all) webservers support using two (or more) certs selected by [SNI](https://en.wikipedia.org/wiki/Server_Name_Indication). Details vary greatly depending on the server which you didn't specify.
Score:0
ar flag

You need a webserver answering on sub.domain1.com that sends a 301 redirect with the new location set to https:/domain2.com.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.