Web Servers on Unix and Linux - Detect language

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Unix and Linux > September 2006 > Detect language





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Detect language
syn_NOSPAM_uw

2006-09-04, 7:22 am

Hello,

How can I have Apache detect the user's browser language and redirect on
a specific page, for example english => /en/index.html, spanish =>
/es/index.html ?

Regards
Nick Kew

2006-09-04, 7:22 am

syn_NOSPAM_uw wrote:
> Hello,
>
> How can I have Apache detect the user's browser language and redirect on
> a specific page, for example english => /en/index.html, spanish =>
> /es/index.html ?


Options +Multiviews

The page you want in TFM is mod_negotiation.

--
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.prenhallprofessional.com/title/0132409674
Andreas Prilop

2006-09-04, 1:22 pm

On Mon, 4 Sep 2006, syn_NOSPAM_uw wrote:

> How can I have Apache detect the user's browser language


You don't want to know "the user's browser language" (whatever
that means). Relevant is the user's preferred language(s)
selected in his browser.

> and redirect on
> a specific page, for example english => /en/index.html, spanish =>
> /es/index.html ?


Have a look at
http://ppewww.ph.gla.ac.uk/~flavell/www/lang-neg.html
http://www.cs.tut.fi/~jkorpela/multi/

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com