Home >Backend Development >PHP Tutorial >TP5 multi-language switching problem, can anyone help me solve it?
In thinkphp 5, how to implement a URL like this:
http://xxxx/cn
http://xxxx/en
When the language is switched to Chinese, all addresses start with http://xxxx/cn, such as http://xxxx/cn/news/1.html; when the language is switched to English, all addresses start with http: //xxxx/en starts, such as http://xxxx/en/news/1.html