Re: localization folder for web site

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

 




Jochem Maas wrote:
Alain R. schreef:
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 cookies

thanks a lot,
Al.


if i use apache .htaccess to rewrite address, it still do not understand how it makes my life easier.

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... :-(

--
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