Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Regular Coder
    Join Date
    Jul 2006
    Posts
    399
    Thanks
    33
    Thanked 7 Times in 7 Posts

    multi language site

    so i have to build a multi language site, so i will have multiple subdomains like:
    de.mysite
    fr.mysite

    each of this site will be in a folder, how can i redirect according to user location? for example the deustch guy arrives to the de.mysite site ?
    tahnks

  • #2
    Regular Coder
    Join Date
    Jul 2006
    Posts
    399
    Thanks
    33
    Thanked 7 Times in 7 Posts
    do i need to use a geo localization script?

  • #3
    New Coder
    Join Date
    Oct 2011
    Posts
    65
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by sybil6 View Post
    do i need to use a geo localization script?
    My personal opinion, I have a multilanguage site, and I just have each language in a folder as /swedish/index.php etc and I am doing just fine.
    I do have flags if persons want to change languages, and all languages have there one backlinks so mysite/swedish/index.php is the page that appear in google.se etc.
    Personally I hate when I am redirected, sometimes I want another language, today I was going to copy and paste the link to Oanda in english, however I got all the time the link in spanish as I am in Spain,
    think its awful and antiuserfriendly.
    Just my opinion.

  • #4
    Senior Coder
    Join Date
    Aug 2006
    Posts
    1,441
    Thanks
    11
    Thanked 305 Times in 304 Posts
    Personally I do this via checking $_SERVER['HTTP_ACCEPT_LANGUAGE'] in PHP. It's the user's requested browser language, so it only seems natural to make an effort to follow their request.

    But yes, the ability to change the language is important, and I certainly wouldn't assume that if someone is physically in country 'X' they therefore want to see a website in language 'X'.

    Dave

  • #5
    Regular Coder
    Join Date
    Jul 2006
    Posts
    399
    Thanks
    33
    Thanked 7 Times in 7 Posts
    im applying geolocalization to the default site ( mysite.net) then all its subdomain dont have the geolocalization script( es.mysite.net, en.mysite.net etc..) so user can choose language after being redirected to its native language(all this assuming he arrives on default site)

  • #6
    Regular Coder
    Join Date
    Jul 2006
    Posts
    399
    Thanks
    33
    Thanked 7 Times in 7 Posts
    Quote Originally Posted by tracknut View Post
    Personally I do this via checking $_SERVER['HTTP_ACCEPT_LANGUAGE'] in PHP. It's the user's requested browser language, so it only seems natural to make an effort to follow their request.

    But yes, the ability to change the language is important, and I certainly wouldn't assume that if someone is physically in country 'X' they therefore want to see a website in language 'X'.

    Dave
    yes this is a better option, i'm having problem with google spiders and my location redirection.

  • #7
    Regular Coder
    Join Date
    Jul 2006
    Posts
    399
    Thanks
    33
    Thanked 7 Times in 7 Posts
    if i use $_SERVER['HTTP_ACCEPT_LANGUAGE'] to redirect my site according to the client language browser will this also affect google crawlers ? (because it did affect them when i redirected according to ip (geo location method) )


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •