The only way to do this would be for both domains to be in the same account. However, as both domains presumably have their own SSL certificates (thus need their own dedicated IPs), you cannot place both domains in the same cPanel/WHM account.
Perhaps someone knows a way to manually configure Apache to handle this for you.
thanks for your reply.
Yes both domains have their own certificate & account.
They need to stay in different accounts.
If I was to put HTTPS out of the thread for a moment, would I have another solution while keeping those two domains as separate account?
You can use the Redirect link in the Domains menu to accomplish this. Simply choose the domain and directory you wish to redirect and type in the full URL you wish to redirect to in the redirects to field.
If you need to get fancy, you may wish to take a look at this primer on using .htaccess redirects:
As noted by Dave above, you're going to have issues with doing this over SSL, especially since the browser will throw a warning that the domain they are traveling to doesn't match what they typed in.
Last edited by daveformerlyof; 10-22-2008 at 03:20 PM.