Re: localization folder for web site
| From: | Maciek Sokolewicz | Date: | Sat, 13 Sep 2008 18:55:44 +0000 |
| Subject: | Re: localization folder for web site | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-280074@lists.php.net to get a copy of this message | ||
Alain R. wrote:
Maciek Sokolewicz wrote: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' - Tulthe mod_rewrite is possible only if i own/manage the apache server but i my case, i have a provider for that so it is not possible. can you explain a little bit more the $_ENV purpose ? because for me it's like a simple session variable nothing more. how do you use it ? i mean the concept... the concept is that you use mod_rewrite for apache (also works in litespeed httpd btw). using mod_rewrite you rewrite the request from www.example.com/fr/index.php to www.example.com/index.php and part of that is that it also sets the environment variable _ENV[lang] to 'fr' for example. Please look up the documentation for mod_rewrite if you want more info.