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

WBOY
Release: 2023-03-01 18:40:01
Original
941 people have browsed it

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~

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!