Skip to main content

Map a Domain to Subdomain both on same server

Comments

2 comments

  • cPanelLauren
    If you want to map hisdomain.com to subdomain.mydomain.com the easiest way to do this would be to create an Alias for hisdomain.com on the server where subdomain.mydomain.com is hosted - this would require creating an A record for hisdomain.com where DNS for it is hosted. IF you wanted to do this using a CNAME you would need to ONLY point hisdomain.com to subdomain.mydomain.com where DNS for hisdomain.com is managed. You would not make ANY changes to subdomain.mydomain.com.
    0
  • webiscore
    The first option will not allow me to share a dedicated cPanel account to the client while both subdomain and hisdomain are hosted on my account. I need to have 2 seperate accounts on the same server. The second option didn't do the trick I set the CNAME for hisdomain to subdomain.mydomain.com but it returns the main domain "mydomain.com" instead of "subdomain.mydomain.com". Also if somebody accesses the subdomain.mydomain.com it won't redirect it to hisdomain.com
    0

Please sign in to leave a comment.