We host a number of websites on our server. Our main site, let's call www.domain.com.

Anyway, we noticed that the other sites we host, such as www.domain-2.com, www.domain-3.com, etc. all point back to our main site (domain.com) when https:// is put in front of their domain. Part of the problem is that these are indexing in Google as well.

The https:// needs to redirect back to the correct domain.. I'm wondering how can I redirect all these in the htaccess?? please help! Thanks