I’m having a hard time trying to figure out the best way to do this. I have a customer that just came to us. They are working on changing their existing domain to a new one. So what they did was the following:
signed up with newdomain.com on our site. Added olddomain.com as a domain alias. They had an existing SSL cert for olddomain.com that we had JH install for the time being. Now they want an SSL cert for newdomain.com, which I can install very easily. Here’s the issue:
They have asked that we force any connections to olddomain.com, to go to newdomain.com. I know this can be done programmatically, and probably even in IIS, but I’m just not sure how to make it happen. The site is hosted on win27, and they are using PHP already, so not sure if I can change index.html to index.php and put some code in there. Does anyone have some experience with this and can point me in the right direction so I’m fixing this up correctly?
Thanks
remove it as a domain alias and make it a domain, and add a permanent redirect in the control panel to the needed domain, will be best solution.
So add it as a 2nd domain under their same user account, is that correct? Then do the redirect of anything of www.olddomain.com to point to www.newdomain.com? So simple, yet so perfect! 
Forgot to ask, they have mail still using the old domain. Do I need to put in forwards for all of those mail addresses?
eh yuck that throws a kink in it…mail domain alias is handled internally there better than any forward
(forwards can really foul up the system)
you could do that short term I guess on cluster1 I think it still allows this, but check first.
Would there be any way to do it programmatically? I thought there was something in php or html or something that would allow you to see what url the browser is going to, and then redirect them to another url based on that?
Yes you can do a redirect in php or asp or other languages by looking at the host header, maybe look it up in google with something like php + redirect + host header