Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-23-2012, 12:58 PM   PM User | #1
sybil6
Regular Coder

 
Join Date: Jul 2006
Posts: 399
Thanks: 33
Thanked 7 Times in 7 Posts
sybil6 can only hope to improve
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
sybil6 is offline   Reply With Quote
Old 01-24-2012, 08:38 AM   PM User | #2
sybil6
Regular Coder

 
Join Date: Jul 2006
Posts: 399
Thanks: 33
Thanked 7 Times in 7 Posts
sybil6 can only hope to improve
do i need to use a geo localization script?
sybil6 is offline   Reply With Quote
Old 01-25-2012, 12:09 AM   PM User | #3
helenp
New Coder

 
Join Date: Oct 2011
Posts: 65
Thanks: 1
Thanked 0 Times in 0 Posts
helenp is an unknown quantity at this point
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.
helenp is offline   Reply With Quote
Old 01-25-2012, 12:50 AM   PM User | #4
tracknut
Regular Coder

 
Join Date: Aug 2006
Posts: 892
Thanks: 4
Thanked 206 Times in 205 Posts
tracknut is an unknown quantity at this point
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
tracknut is offline   Reply With Quote
Old 01-31-2012, 11:03 AM   PM User | #5
sybil6
Regular Coder

 
Join Date: Jul 2006
Posts: 399
Thanks: 33
Thanked 7 Times in 7 Posts
sybil6 can only hope to improve
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)
sybil6 is offline   Reply With Quote
Old 04-23-2012, 05:01 PM   PM User | #6
sybil6
Regular Coder

 
Join Date: Jul 2006
Posts: 399
Thanks: 33
Thanked 7 Times in 7 Posts
sybil6 can only hope to improve
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.
sybil6 is offline   Reply With Quote
Old 04-29-2012, 10:13 PM   PM User | #7
sybil6
Regular Coder

 
Join Date: Jul 2006
Posts: 399
Thanks: 33
Thanked 7 Times in 7 Posts
sybil6 can only hope to improve
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) )
sybil6 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:28 PM.


Advertisement
Log in to turn off these ads.