Re: localization folder for web site

From: Date: Sat, 13 Sep 2008 18:01:34 +0000
Subject: Re: localization folder for web site
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-280070@lists.php.net to get a copy of this message
Alain R. wrote:
so how can i do the same ? i mean to have 1 single PHP page and to localize, but to have the URI with /en, or /fr or /de ? i know how to localize the complete website i already done it, but what you told ? One would hope that unless it's a pretty small static site those
"folders" actually map to the same place and generate pages in the required language. The reason it's in the URI and not URI agnostic is indeed so that search engines can index multiple languages if they want to. -Stut
1. don't top-post please 2. google "apache mod_rewrite", that way you can rewrite urls of the form www.example.org/de/whatever to www.example.org/whatever?lang=de or even stick the de part into an environment variable $_ENV['lang'] = 'de' - Tul

« previous php.general (#280070) next »