GeoIp and AdSense

Discussion in 'PHP' started by bosal, Dec 23, 2007.

  1. #1
    hello,
    I want that users entering my sites get the site in their language. For example 3 languages:
    Spanish
    English
    and Polish - Main

    So if someone enters from brazil, spain etc... He get the site in spanish eg. es.mysite.com . When a user enters site from poland he get it in polish eg. mysite.com . Else he get it in english (eg. en.mysite.com).

    Ok so i want do it with cookies etc...

    But how to make it best for the bots, how to show them all languages. becouse the bots doesn't accept cookies.

    Now i made this like this: http://www.999tutorials.com/tutorial-geo-target-your-visitors.html
     
    bosal, Dec 23, 2007 IP
  2. mvl

    mvl Peon

    Messages:
    147
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Use a (XML) sitemap to show the pages in all different languages. Bots might not get the cookies but they will be able to crawl the sitemapfile.
     
    mvl, Dec 23, 2007 IP
  3. bosal

    bosal Peon

    Messages:
    115
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    And what about AdSense bot? I think it work in a different way...
     
    bosal, Dec 23, 2007 IP
  4. Vio82

    Vio82 Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    xttp://www.mattcutts.com/blog/subdomains-and-subdirectories

    So, Matt is recomend to buy separate domain for each language and I think is more corectly.
     
    Vio82, Dec 23, 2007 IP
  5. matthewrobertbell

    matthewrobertbell Peon

    Messages:
    781
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You could use the user agent the browser sends to choose what language to display.
     
    matthewrobertbell, Dec 23, 2007 IP
  6. FotoZone

    FotoZone Well-Known Member

    Messages:
    364
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    145
    #6
    Use a (XML) sitemap to show the pages in all different languages, but.. good check all ip
     
    FotoZone, Dec 23, 2007 IP
  7. mvl

    mvl Peon

    Messages:
    147
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Bots don't accept cookies so I guess they will not be redirected to a specific url for their language, so this is not really a problem.
     
    mvl, Dec 23, 2007 IP
  8. Vio82

    Vio82 Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    It is very doubtful and not correctly actually.

    Here is my user-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)
    So whrere you redirecting me? -))
     
    Vio82, Dec 23, 2007 IP
  9. joebert

    joebert Well-Known Member

    Messages:
    2,150
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    145
    #9
    Check for the Accept-Language HTTP header to determine which language should be sent to the visitor.
     
    joebert, Dec 23, 2007 IP
  10. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #10
    Google treats sub-domains just like domains themselves.

    Peace,
     
    Barti1987, Dec 23, 2007 IP