1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Question about domains and addon domains

Discussion in 'White Hat SEO' started by kclark, Jan 16, 2014.

  1. kclark

    kclark Newbie

    Joined:
    Dec 28, 2013
    Messages:
    29
    Likes Received:
    1
    Hello guys, sorry if this is a simple question, but I can't seem to find the answer.
    I apologize in advance for not knowing all the correct terminology to explain in detail, I'll do my best :)

    Basically, I started a baby plan with hostgator with a single domain, and over time, I added on a couple other domains, but the primary domain on the account is the first one I used. When I look in cPanel, I can see all my addon domains, but they are also listed in my subdomains too.
    For example in my addon domains, I see:
    domain2.
    domain3.
    domain4.

    But in subdomains, I see:
    domain2.domain1.
    domain3.domain1.
    domain4.domain1.

    Is this affecting my SEO by creating duplicate content? If it is, can I fix it by simply redirecting them to the home domain?

    Thanks for any help,
    Kris
     
  2. bartosimpsonio

    bartosimpsonio Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 21, 2013
    Messages:
    8,883
    Likes Received:
    7,478
    Occupation:
    ZLinky2Buy SEO Services
    Location:
    ⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩
    Home Page:
    You can redirect them to the main domain via .htaccess - use the file manager to create one, then copy a .htaccess with a redirect from the www.
     
  3. Exaalion

    Exaalion Regular Member

    Joined:
    Aug 1, 2012
    Messages:
    240
    Likes Received:
    266
    The below code in your .htaccess should solve the problem.

    RewriteEngine on

    RewriteCond %{HTTP_HOST} ^primarydomain.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.primarydomain.com$ [OR]
    RewriteCond %{HTTP_HOST} ^addondomain.primarydomain.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.addondomain.primarydomain.com$ [OR]
    RewriteCond %{HTTP_HOST} ^addondomain.com$
    RewriteRule ^(.*)$ http\:\/\/www\.addondomain\.com/$1 [R=301,L]

    From my own personal experience, (just double checked now) Google does not index YOURSITE.PRIMARYDOMAIN.com
     
  4. jennym

    jennym Junior Member

    Joined:
    Sep 26, 2008
    Messages:
    176
    Likes Received:
    89
    Some hosts show these and some don't. The main place I remember seeing these is when you go to make email accounts. You don't need to do anything, just ignore them. Now that I think about it, I think it was hostgator that had those.
     
  5. seocrab

    seocrab Senior Member

    Joined:
    May 2, 2013
    Messages:
    969
    Likes Received:
    825
    Occupation:
    seo freelancer
    Location:
    UK
    yep, just redirect them and there will be no duplicate content. If you can't deal with .htaccess you can do it in cpanel too.