Web Hosting Talk







View Full Version : Browser Redirect for different languages?


mercury
08-21-2002, 07:26 PM
hi all,
is there a script (for linux servers) that redicrect visitor to different laguage page?
E.G. i have a website in english, italian and german. So english users should be redirect to the engl. vers. , Italian users to the italian vers. , etc.

Anyone can help me with this ?


thanks

Lats
08-21-2002, 09:53 PM
A common practise is to place those countries flags on your main page, then the user can select the language required.

As an aside, how do you think a script would know what language your visitor knows!?


Lats...

jkca
08-21-2002, 11:04 PM
I suppose you could get the Ip address then do a reverse lookup and see what the domain extension is, you could also check the environmental variable HTTP_ACCEPT_LANGUAGE and redirect according to that