Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    1

    Exclamation Google indexing domain.com/addon domain

    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. #2
    Member Kailash1's Avatar
    Join Date
    Nov 2006
    Location
    webhostingdiscussion.net
    Posts
    225
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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. #3
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    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. #4
    Registered User
    Join Date
    Oct 2009
    Posts
    3

    Default

    One word of caution when using redirects, is that the 302 option could damage your domain's ranking on search engines (302 "hi-jacking"). Here's an article on it:
    Page Hijack: The 302 Exploit, Redirects and Google - clsc.net

    Regards

Similar Threads & Tags
Similar threads

  1. Replies: 5
    Last Post: 01-28-2012, 03:42 AM
  2. Google indexing strange spam sub-domain in my site !!!
    By 5aa5 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-20-2011, 08:00 PM
  3. Which Parked Domain or Addon Domain will display domain typed?
    By devGOD in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-07-2011, 07:22 AM
  4. Replies: 1
    Last Post: 01-09-2010, 02:33 AM
  5. Google Indexing Subdomains
    By coppershadow in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-04-2009, 10:12 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube