Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a new WordPress website and a legacy billing system. For technical reasons, they cannot be on the same hosting plan. The hosting account for billing (and the original abc.com website) also manages DNS and mail.

I'm trying to incorporate the new website under the same domain, eg. abc.com (website, on a different hosting account) and billing.abc.com (billing). I assume the answer is having a different A record for abc.com.

I currently have a CPanel shared hosting account to use for the website (but can upgrade if necessary). How would I set this up in CPanel, so that the URLs work properly? Do I need a dedicated IP and then add the domain as an add-on domain?

Thanks

share|improve this question
    
Just a word of warning: The hosting company could forbid you do set A records. It depends on what they configured in the back-end. Check first in cPanel if you can set new A records. –  Raffael Luthiger May 14 '11 at 11:23

2 Answers 2

Yes,I would just set an A record for Billing.example.com to the Billing server. Then keep the example.com A record the same and it will work how you want it to.

share|improve this answer

If you control DNS through cpanel, add an A record for both abc.com and billing.abc.com pointing to their IP's.

You will then need to configure the webserver for each domain aswell. If both accounts are using cpanel, this should be trivial. Sounds like you know what is needed, but are looking for re-assurance. More details may be required if you want specifics.

share|improve this answer
    
Thanks - I do have a sense of what is needed, I've just never done it before (and the client wants assurance that their domain will be intact in the website's URL before changing the DNS). I guess I just want to know what I need on abc.com's end to have the proper URL - maybe an account with a dedicated IP, a certain .htaccess setting?.. –  kwight Jan 28 '11 at 23:11
1  
No, shared will work as it can get the hostheaders. just point the A to the shared IP and setup billing.example.com as a host header and your good. –  Jacob Jan 29 '11 at 1:09
    
Like Jacob said, the server gets the domain from the browser. Just set up the host like you normally would, and while it wont work until DNS is changed, it wont cause any errors before DNS works either so its safe to do prior to the switch. –  David Houde Feb 1 '11 at 17:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.