CPanel's addon domains

Discussion in 'Search Engine Optimization' started by kniveswood, Oct 17, 2005.

  1. #1
    Just found out about this feature on CPanel, which allows me to point a second domain to my existing domain's hosting plan. This allows me to share resources like bandwidth and disk space. For those interested in knowing more can go here:
    http://www.accordmarketing.com/tid/articles/add-on-domains.html

    But my question is, will this cause some kind of duplicate content problem? If the seconddomain.com is 301'ed to firstdomain.com/seconddomain, there shouldnt be any problem right? I hope someone who used this feature before can provide some input.

    Thanks! :)
     
    kniveswood, Oct 17, 2005 IP
  2. saintdw

    saintdw Peon

    Messages:
    453
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I dunno how that would be a problem.

    1. The subdomain that corresponds to add-on domain is not linked to from ANHYWHERE.

    2. You can 301 it to main domain.
     
    saintdw, Oct 17, 2005 IP
  3. kniveswood

    kniveswood Well-Known Member

    Messages:
    764
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    120
    #3
    I did a little test on a unused domain of mine. I checked the headers with this tool. Unlike what another thread says, it seems I can indeed do a 301 like saintdw suggested.

    According to that post, he got a "redirection limit has exceeded" error, after applying 301 from ht*p://firstdomain.com/seconddomain to ht*p://seconddomain.com.

    But if you look at my test setup, it appears fine.

    My test firstdomain -> hiptechblog.com
    My test seconddomain -> fishplant.com

    Going to http://www.hiptechblog.com/fishplant and http://fishplant.hiptechblog.com appears to properly 301 to http://www.fishplant.com

    This is what's inside my .htaccess:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^fishplant.hiptechblog.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.fishplant.hiptechblog.com$
    RewriteRule ^(.*)$ http://www.fishplant.com [R=301,L]
    
    redirect 301 /fishplant/ http://www.fishplant.com/
    Code (markup):
    I hope some expert can tell me if I've done everything right. This might be useful to anyone else wanting to use cPanel's "Addon Domains" feature. And if I did something wrong, please let me know! :)
     
    kniveswood, Oct 17, 2005 IP
  4. saintdw

    saintdw Peon

    Messages:
    453
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It seems to be working fine there.

    I have the same thing in my .htaccess and it was set up by my host I guess they are experts :)

    His error might be with one of the scripts he's using.
     
    saintdw, Oct 17, 2005 IP
  5. kniveswood

    kniveswood Well-Known Member

    Messages:
    764
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    120
    #5
    Thanks for confirming, saintdw! Wouldn't have any input if not for you. Seems like not many people uses addon domains. I guess most would just shell out the couple of bucks a month to get a dedicated account. :D
     
    kniveswood, Oct 17, 2005 IP
  6. kniveswood

    kniveswood Well-Known Member

    Messages:
    764
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    120
    #6
    For those reading this thread, I've removed the test setup above. So don't be surprised with the links doesn't work. And if you follow the above setup, you should be able to successfully use cPanel's "Addon Domains" too! :)
     
    kniveswood, Oct 18, 2005 IP