Adsense sees http://domain.com and http://www.domain.com differently - help

Discussion in 'AdSense' started by janmars, Apr 7, 2007.

  1. #1
    I set up adsense up my website just over a week ago, and am finding
    that the index page for http://www.thethoughts.co.uk/thoughts doesn't
    have content sensitive adds.

    Meanwhile using the url, http://thethoughts.co.uk/thoughts *does*
    display content sensitive adds. Is there anyway I can get the content
    sensitive ads to appear on the www url?

    Thanks
     
    janmars, Apr 7, 2007 IP
  2. janmars

    janmars Peon

    Messages:
    74
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Also I placed a referal ad for Firefox at the bottom of the right sidebar on the site. Yesterday the ad displayed fine, today it isn't even there. However the code is still in place. What could be causing this?
     
    janmars, Apr 7, 2007 IP
  3. Darkhodge

    Darkhodge Well-Known Member

    Messages:
    2,111
    Likes Received:
    76
    Best Answers:
    1
    Trophy Points:
    185
    #3
    You could try using a 301 redirect to permanently transfer http://domain.com to http://www.domain.com or vice versa. I'm not totally sure but I imagine that will solve the problem.

    Here's how to do it:

    Source :: http://www.tamingthebeast.net/articles3/spiders-301-redirect.htm
     
    Darkhodge, Apr 7, 2007 IP
  4. MrX

    MrX Well-Known Member

    Messages:
    1,563
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    140
    #4
    Basically those are two different addressess (www vs. non-www), so AdSense bot needs to index them both (for each page!) as different locations. Either do a redirect in your htaccess like this:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.mydomain\.com
    RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
    Code (markup):
    or just wait for the AdSense bot to properly index and identify both versions of the same pages (the redirect method above is preferred though).
     
    MrX, Apr 7, 2007 IP
  5. janmars

    janmars Peon

    Messages:
    74
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    That's great! Thanks for the quick replies...
     
    janmars, Apr 7, 2007 IP
  6. Darkhodge

    Darkhodge Well-Known Member

    Messages:
    2,111
    Likes Received:
    76
    Best Answers:
    1
    Trophy Points:
    185
    #6
    No probs - hope it solves the problem :D
     
    Darkhodge, Apr 7, 2007 IP
  7. janmars

    janmars Peon

    Messages:
    74
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Thanks. I have set this up and it now works.

    One question though - could this sort of redirect present any problems with Google? For example could it be considered tricking the GoogleBots via the redirection?

    Cheers...
     
    janmars, Apr 7, 2007 IP
  8. sundaybrew

    sundaybrew Numerati

    Messages:
    7,294
    Likes Received:
    1,260
    Best Answers:
    0
    Trophy Points:
    560
    #8
    No , google actually prefers that :)

    Cheers

    Happy Easter
     
    sundaybrew, Apr 7, 2007 IP
  9. Darkhodge

    Darkhodge Well-Known Member

    Messages:
    2,111
    Likes Received:
    76
    Best Answers:
    1
    Trophy Points:
    185
    #9
    Just as he says it helps. It also helps your SERP rankings. If you read the quote I posted it states that people think that doing this 301 redirect helps prevent duplicate content penalties. :)
     
    Darkhodge, Apr 7, 2007 IP