1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Redirect addon domain

Discussion in 'Site & Server Administration' started by dondor, Mar 17, 2007.

  1. #1
    Hi,

    I run phpld on an addon domain.
    My problem is that when logging in to addon.maindomain.com shows the same result as addon.com & because of a server error a little while back, google had indexed the addon.maindomain.com as well and now I'm afraid that I will be penalized for duplicate content.

    I would like your advice and guide on how to fix this problem.
    I've considered a disallow on the robots.txt file, but I don't know exactly how to write it
    or perhaps a 301 redirect on htaccess file, but when adding this line:
    RewriteRule (.*) http://www.addon.com/$1 [R=301,L]

    I get blocked from accessing the domain at all.

    I'd appriciate your experts help.
     
    dondor, Mar 17, 2007 IP
  2. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It's perfectly OK that addon.domain.com content is same as addon.com

    Place this .htaccess file in public_html folder of addon domain :

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^addon\.domain\.com$ [NC]
    RewriteRule ^(.*)$ http://www.addon.com/$1 [R=301,L]
     
    agnivo007, Mar 17, 2007 IP
  3. dondor

    dondor Well-Known Member

    Messages:
    844
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #3
    Thank you so much....

    I've tried similiar things that didn't work.
    This one worked perfectly.
     
    dondor, Mar 18, 2007 IP
  4. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Good to know that it worked for you...
    I deserve a green reputation then... ;)
     
    agnivo007, Mar 18, 2007 IP
  5. dondor

    dondor Well-Known Member

    Messages:
    844
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #5
    Don't really know how to do those.... :(
     
    dondor, Mar 18, 2007 IP
  6. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Just click the "scales" icon to the top right of my post.
    This would help you rep. others in the future too ;)
     
    agnivo007, Mar 18, 2007 IP
  7. dondor

    dondor Well-Known Member

    Messages:
    844
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #7
    ok, I think it's done. thanks again.
     
    dondor, Mar 18, 2007 IP
    agnivo007 likes this.