Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Add primary domain to a subdomain account

Discussion in 'Bind/DNS/Nameserver' started by aseptik, Mar 28, 2018.

  1. aseptik

    aseptik Member

    Joined:
    Jan 23, 2018
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Italy
    cPanel Access Level:
    Root Administrator
    Hi all,

    From WHM i have setup a cPanel account with primary domain as "test.domain.com" as this is a development server in beta testing and the primary "domain.com" is running on another IP/server adn it's already in production...

    Now it's time to switch all the site to this new server and i need to add the primary domain "domain.com" as well as the "www.domain.com" to the "test.domain.com" account.

    is this something that can cause problems and how i have to manage this?

    thank you in advance for any help.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,791
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You could modify the domain name directly using "WHM >> Modify An Account" instead of adding it as an addon domain name.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    aseptik likes this.
  3. aseptik

    aseptik Member

    Joined:
    Jan 23, 2018
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Italy
    cPanel Access Level:
    Root Administrator
    Hi Michael,

    i have another little question, i understand i have to modify the account, but i'm unsure if i have to change from "test.domain.com" to "domain.com" or to "www.domain.com" ?

    Anyway i need both domain.com and www.domain.com to point to same directory...

    thanks in advance for your help.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,791
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You would change it do "domain.com". Using "www" as part of the domain name isn't required because the "www" alias is automatically configured.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    aseptik likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice