Codeigniter 多语言并将语言添加到 seo 的 url [英] Codeigniter multilanguage and adding the language to the url for seo
问题描述
我读过这个制作codeigniter的最佳方式网站多语言.从 lang 数组调用取决于 lang 会话?
对于语言包含...我想知道 url 将如何显示为多种语言...
for language inclusion... i wonder how the url will appear for multi languages...
如何在 url 中显示语言以便它也能在搜索引擎中被索引...
How to show the language in url so that it will also be indexed in search engines...
例如 sitenameDOTcom/es 或 sitenameDOTcom/whoweare/es 或类似的东西以及如何与控制器和 url 同步...
for example sitenameDOTcom/es or sitenameDOTcom/whoweare/es or something like this and how to sync with the controllers and the urls...
推荐答案
啊,我在 codeigniter 论坛上找到了一篇文章.这是……
ah, i found an article in the codeigniter forums. here it is ...
https://github.com/EllisLab/CodeIgniter/wiki/URI-语言标识符
以前的网址如下所示,现在不起作用.http://codeigniter.com/wiki/URI_Language_Identifier/
previously the url was like the following and now it doesn't work. http://codeigniter.com/wiki/URI_Language_Identifier/
这是我正在使用的一个活生生的例子
and here is a live example i am using
http://vikku.info/wordreminder/en
这篇关于Codeigniter 多语言并将语言添加到 seo 的 url的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!