codeigniter多语种网站的默认语言网址语种、语言、网址、网站

2023-09-02 00:57:36 作者:倾城旧梦依旧

我使用 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