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!

Addon Domain Problem

Discussion in 'General Discussion' started by udinnet, Jan 15, 2011.

  1. udinnet

    udinnet Member

    Oct 18, 2010
    Likes Received:
    Trophy Points:
    Hi there,
    I'm using cpanel. Few days ago I got a new domain and I added it as a add-on domain to my cpanel. The cpanel was configured to my main domain(ex:- and not for the new domain(ex:- So I saw a folder was created for the new domain in public_html/ folder.

    Now my question is, yesterday I saw my new site was in google... But it shows the url as ????

    Actually what was this? Will it keep always like that? What is the possible solution to set the domain as

  2. usman43

    usman43 Member

    May 16, 2008
    Likes Received:
    Trophy Points:
    While making a domain addon , entering domain name (lets say in the filed 'New Domain Name:' at cPanel > Domains > Addon Domains , cPanel automatically fills the 'Document Root:' as public_html/ , which means that's web content will load from /home/USER/public_html/ folder.
    Note that by default web content for main domain (say loads from public_html and you can load any page or sub directory under it as

    here since '' is a sub directory under public_html , URL: will load web content in /home/USER/public_html/ that is what you see at google.

    To avoid this , make sure you manually fill in 'Document Root:' while creating addon domain and remove the '.com' part from the new domain name. A better choice would be to fill 'Document Root:' as 'newdomain' instead of 'public_html/' which will make the sub directory outside of public_html for new addon domain.
  3. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Oct 2, 2010
    Likes Received:
    Trophy Points:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    This will only work if WHM > Tweak Settings > public_html subdomains only is set to Off by the host. If it is set to On, then subdomains (and addon domains) can only be created in public_html folder.
    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