R
R
Roman2022-03-21 17:44:47
Web servers
Roman, 2022-03-21 17:44:47

Error 400 and 404 with a Russian link. How to eliminate?

Link in Russian. The letter K is equal to %D0%BA.

If I specify in these two ways, everything is processed
200 Everything is OK:
example.ru/to
example.ru/%D0%BA

If I delete several characters from the encoded link, then
Error 1:
400
Bad Request
Your browser sent a request that this server could not understand.
example.ru/%D0%B
example.ru/%D0%

If I remove half of the encoded letter, then
Error 2:
404
example.ru/%D0

example.ru/4/%D0 - this request must be processed by the application with a redirect. But the redirect does not occur and 404 is displayed

. How to implement the processing of these errors?
The application is written in laravel.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question