The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Google indexing domain.com/addon domain

Discussion in 'General Discussion' started by famousartguy, Oct 23, 2009.

  1. famousartguy

    famousartguy Registered

    Joined:
    Aug 3, 2005
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hello,
    I have an addon domain, when the site name is searched in Google the link shows as:

    http://maindomain.com/addondomain.com

    I'd rather it just show http://www.addondomain.com and DO NOT want the parent domain to show.


    The main domain is being used as another site as well, but the two are not connected or relevant to each other.

    Is there something I can do to fix this?
     
  2. Kailash1

    Kailash1 Well-Known Member

    Joined:
    Nov 27, 2006
    Messages:
    252
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    Create a robots.txt file in the public_html of your main domain and write the following contents:

    Code:
    User-agent: *
    Disallow: /addondomain.com 
    Kailash
     
  3. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Another option, in addition to the robots.txt method, would be to create a redirect so that access attempts to the specific directory are redirected to the full URL of the add-on domain. A redirect could be setup via cPanel to accomplish this; via cPanel, under the Domains section, simply click on Redirects to get started.

    Here is our documentation for the relevant section in cPanel:
    cPanel >> Domains >> Redirects
     
  4. Arcat

    Arcat Registered

    Joined:
    Oct 29, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
Loading...

Share This Page