Re: localization folder for web site
| From: | Alain R. | Date: | Sun, 14 Sep 2008 19:09:35 +0000 |
| Subject: | Re: localization folder for web site | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-280124@lists.php.net to get a copy of this message | ||
Jochem Maas wrote:
Alain R. schreef:for example, if user run page www.myweb.com/index.php?l=en and in my .htaccess i have rewrote index.php?l=en to be rewritten as www.myweb.com/en/index.php, it means that in my index.php i must use a regex to extract /en/ variable and to convert it to a $lang variable for instance. so isn't it easy to use www.myweb.com/index.php?l=en. what does such rewriting makes my life better ? is it only such tip for search engine better referencing ? i'm lost... :-(Hi, mostly (90%) websites are designed to include localization (made in php) folder like following: www.mywebsite.com/en/ www.mywebsite.com/de/ www.mywebsite.com/fr/ why do they not use only 1 folder and use dynamically PHP to change localization of website ?who says the 'folders' (directories) en, de, fr et al actually exist?has this something to do with search engine rating ?amongst other things, it's also a way of passing along the requested translation with requiring cookiesthanks a lot, Al.if i use apache .htaccess to rewrite address, it still do not understand how it makes my life easier.