Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Oct 2010
    Posts
    14

    Default Addon Domain Problem

    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:- www.maindomain.com) and not for the new domain(ex:- newdomain.com). 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 http://www.maindomain.com/newdomain.com ????

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

    http://www.newdomain.com

    Thanks.

  2. #2
    Member
    Join Date
    May 2008
    Posts
    21

    Default Re: Addon Domain Problem

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

    http://www.maindomain.com/file_name
    or
    http://www.maindomain.com/folder_name

    here since 'newdomain.com' is a sub directory under public_html , URL: http://www.maindomain.com/newdomain.com will load web content in /home/USER/public_html/newdomain.com 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/newdomain.com' which will make the sub directory outside of public_html for new addon domain.

  3. #3
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Addon Domain Problem

    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/newdomain.com' which will make the sub directory outside of public_html for new addon domain.
    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.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads & Tags
Similar threads

  1. Replies: 1
    Last Post: 01-09-2010, 02:33 AM
  2. Problem with addon domain
    By winromulus in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-20-2007, 03:27 AM
  3. addon domain problem
    By Trice in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 09-18-2005, 03:50 AM
  4. Addon domain problem
    By nick_phost in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 11-18-2004, 10:56 PM
  5. Addon Domain Problem
    By iNetter in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-22-2004, 11:24 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube