Codeigniter将该语言添加到SEO的URL中

时间:2016-08-03 09:45:45

标签: php codeigniter-3

我想将该语言的简短版本添加到url,并从url获取以加载多语言文件。

e.g www.example.com/ and www.example.com/en/ as default language and www.example.com/am/ for Amharic language.

我在应用程序/语言旁边有amharic和english文件夹和翻译文件。我只想添加/ am / about并加载amharic翻译和/ en / about或/ about加载英语。 Codeigniter版本3.0.6

1 个答案:

答案 0 :(得分:1)

我发现这篇文章是为了解决URI中的语言选择问题。您可以按照步骤解决问题。

https://github.com/bcit-ci/CodeIgniter/wiki/URI-Language-Identifier