Why do PSA ads show when there's no "www" in my domain?

Discussion in 'AdSense' started by Val_Resnik, Jun 19, 2007.

  1. #1
    If I go to www.mysite.com, the ads show fine.

    But if I type in mysite.com, the ads don't show. It's just hurricane relief.

    Does anyone know why it's doing this?
     
    Val_Resnik, Jun 19, 2007 IP
  2. MrX

    MrX Well-Known Member

    Messages:
    1,563
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    140
    #2
    yes, because www,something,com and just something,com are considered two different domains. Google hasn't yet spidered the non-www part, even though you and I both know it contains the same text, Google spider can't be sure until it actually spiders it.

    Tip for ya, use htaccess to redirect all non-www requests to the www domain:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.mydopesite\.com
    RewriteRule (.*) http://www.mydopesite.com/$1 [R=301,L]
    Code (markup):
     
    MrX, Jun 19, 2007 IP
  3. Val_Resnik

    Val_Resnik Peon

    Messages:
    92
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks! I think it's fixed.
     
    Val_Resnik, Jun 19, 2007 IP
  4. Val_Resnik

    Val_Resnik Peon

    Messages:
    92
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    This weird. I did the htaaccess redirect and it worked fine yesterday. Today, if you type in the mysite.com, it redirects to www.mysite.com, but one of the three adsense blocks is still showing PSA ads. What the hell?

    edit: I typed in the url a few more times and the ads started showing up. Still, that baffles me, because as far as google is concerned, it was the same old page that has always been showing ads. I wonder if it was just a glitch in google and had nothing to do with my redirection.
     
    Val_Resnik, Jun 20, 2007 IP