Re: localization folder for web site

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux