简体   繁体   English

Codeigniter将语言添加到SEO的网址中

[英]Codeigniter adding the language to the url for SEO

I want to add the short version of the language to url and get from the url to load the multi language file. 我想将简短的语言版本添加到url并从url中获取以加载多语言文件。

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

I have the amharic and english folder and translation files in side the application/language. 我在应用程序/语言旁边有amharic和english文件夹以及翻译文件。 I simply want to add the /am/about and load the amharic translations and /en/about or/about load the english. 我只想添加/ am / about并加载阿姆哈拉语翻译,并/ en / about或/ about加载英语。 Codeigniter version 3.0.6 Codeigniter版本3.0.6

I found this article to solve language selection problem from URI. 我找到这篇文章来解决URI中的语言选择问题。 You may follow steps to resolve your issue. 您可以按照以下步骤解决问题。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM