In SEO point of view, it's better to have language in the URL : the 2 languages will be indexed with each its own URL How search engines will deal with 1 URL with different content ?
For routes magic, see this article from Nate : http://c7y.phparch.com/c/entry/1/art,cake-seo This one too: http://blog.jails.fr/cakephp/index.php?post/2008/05/29/Smart-url-for-i18n On 3 juil, 17:07, "b logica" <[EMAIL PROTECTED]> wrote: > IMO, you're better off not relying on the language being in the URL. > Set it in the session when the user switches and check that. > > On Thu, Jul 3, 2008 at 10:04 AM, K3 <[EMAIL PROTECTED]> wrote: > > > Hi, > > im using i18n and i can switch language wihtout problems. However, the > > links in the URL bar remain the same, for example site.com/controller/ > > action. Is it possible to "patch" THTML helper somehow so i can > > automatically change links to current_lang/controller/action, > > for example when i write echo $html->url('/controller/action') to get > > link to site.com/en/controller/action (if en is selected as current > > language setting). > > > at the moment i have > > Router::connect('en/:controller/:action/*', array('controller' => > > 'pages', 'action' => 'display', 'lang' => 'en')); > > > maybe i need to override htmlhelper's url and link methods. Any ideas > > or suggestions? > > > thanks in advance --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
