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!

Changing primary domain without touching e-mails

Discussion in 'E-mail Discussion' started by frdz, Sep 11, 2018.

  1. frdz

    frdz Registered

    Sep 11, 2018
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    So my deal is:

    I have a client with as the primary domain. He also has a few subdomains and e-mail accounts in this

    Now he wants to change his primary domain to, and add as subdomain(?), so he could have control (via cPanel) over the destination which is pointing to on the server (/public_html/whatever_he_likes/).

    So my question is: how to change primary domain on the account from to (yes, the subdomain of, and not to change all other subdomains he already has ( will become, which I want to avoid), and not to change domains of e-mails he already got ( will become - also want to avoid).

    OR maybe there is another solution for Client to have full control over the root directory of primary domain? (I've changed it manually for now via editing /var/cpanel/userdata/<username>/<domain>).
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Nov 14, 2017
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    DataCenter Provider
    Hi @frdz

    There's no way to do this without creating a new account for the user and the manually restoring the data but I don't think the end goal would match what you'd like to do because of the document root directory change you're wanting to make.

    The way you're noting you've done this is currently the only way to customize the document root - there is no way to customize this that is supported by cPanel or available natively. There are some feature requests that are similar to what you're requesting and I would suggest logging in and voting on them if this is something you'd like to see in the product:

    Main Domain to use a subfolder like addon domains
    Improve Domain and Subdomain Directory Structure under public_html
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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