codeigniter多语种网站的默认语言网址 [英] Codeigniter Multilingual website default language url

查看:172
本文介绍了codeigniter多语种网站的默认语言网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 codeIgniter 2.1国际化国际化开发一个多语言网站,codeIgniter。

I'm using CodeIgniter 2.1 internationalization i18n for developing a multilingual website with CodeIgniter.

我的问题是,当用户进入网站的网址,例如www.example.com在传送到www.example.com/en/default_controller,但我不希望我的主页(仅适用于默认语言,英语)的任何重定向。

My problem is that when the users enter the website URL for example "www.example.com" they are forwarded to "www.example.com/en/default_controller", but I don't want any redirection for my homepage (only for the default language, English).

因此,他们应该留在www.example.com上正在显示的默认语言(英语)的默认控制器。

有关其他语言的它的罚款有www.example.com/fr/default_controller的网页。

For other languages it's fine to have "www.example.com/fr/default_controller" as the homepage.

推荐答案

我从主URL的文件,现在它的正常工作:

I got the files from the main URL and now it's working fine:

http://jeromejaglale.com/doc/php/$c$cigniter_i18n

这篇关于codeigniter多语种网站的默认语言网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆