Home  >  Article  >  Backend Development  >  Ubuntu 16.04 has LAMP installed. Accessing a URL with Chinese characters will result in 404

Ubuntu 16.04 has LAMP installed. Accessing a URL with Chinese characters will result in 404

WBOY
WBOYOriginal
2016-12-01 00:25:50916browse

Installed ubuntu LAMP on vps. Then downloaded and installed a wordpress. everything is normal. But if the article access URL is like this abc.com/Hello, an error will be reported. abc.com/hello is OK.

Does anyone know how to fix this UF8 problem?

Reply content:

Installed ubuntu LAMP on vps. Then downloaded and installed a wordpress. everything is normal. However, if the article access URL is similar to this abc.com/Hello, an error will be reported. abc.com/hello is OK.

Does anyone know how to fix this UF8 problem?

You need to transcode the Chinese and then decode it on the server. Because requesting a connection does not support Chinese

I have never seen this kind of Chinese routing. If you want to use Chinese, you must at least urlencode it

Thanks for the invitation. I’ve never seen a Chinese route before..

Develop a good habit of using English. Come on~

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn