Redirecting Sub Domain To Another Account

jeverd01

Registered
Feb 22, 2010
3
0
51
I am really unfamiliar with whm / cpanel and wondering if this is possible. On the server of the business I work for we have multiple sites hosted and managed in the whm. What we want to do is set up basically a development account. Basically I want to be able to create a sub domain of an account in the whm and then temporarily associate it with the directory of the new account I created. For instance

www.newclientsname.oururl.com and have this temporarily be associated with the account we create. Then when development is finished I want to change the url to their url.

Is this possible? If so how would I do it. I understand / know how to configure an apache web server, but cpanel / whm are somewhat new to me. Thanks :)
 

Infopro

Well-Known Member
May 20, 2003
17,075
524
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
I think you can do this. Via WHM, you have already an account named yourdomain.com and you want to create a new account using yourdomain.com but this is a separate account, correct?

To keep them separated, you could create a new package (just for organizing things better) and then create a new account and give it that special package, this new account can be named client123.yourdomain.com

Doing so you now have a cPanel account for yourdomain.com with package plan1 and a separate login/account for client123.yourdomain.com using package plan2.

So far so good. Next, you get done working with client123 and it's time to give them their own cPanel account, they already have one this way though, you just need to do a domain name change.

client123 should set their nameservers to your server at this point so that client123.com is pointing to you and then in WHM find Modify an Account, select client123.yourdomain.com and then edit the domain name there to client123.com, set the package appropriately and save.

That should work.

You might want to setup a dummy account and test first in advance of exposing this to client123 so you know what happens later when you actually do it on a live account someone is waiting on.

GL!
 

jeverd01

Registered
Feb 22, 2010
3
0
51
Thanks,

I'll give this a shot tommorow and let you know how it goes. I really appeciate your help. One more question though, would I first create the subdomain in cpanel for the main account, or would I just assign the account this name in WHM and subdomain would be created?
 

Infopro

Well-Known Member
May 20, 2003
17,075
524
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
No, you won't be doing anything with the main account. In other words, if you only had one account shown in your WHM under List Accounts: yourdomain.com, when you're done with the above, you'd then have 2 accounts listed. These would be 2 totally separate accounts. Just as if you created yourdomain.com and mydomain.com
(Only they'd be in this case, yourdomain.com and client123.yourdomain.com)