Answer the question
In order to leave comments, you need to log in
Is nginx not working properly, does the / slash interfere?
I switched everything from Apache to nginx, set up the config, in general, everything works, but links https://site.ru/data.php/?getooo
like 404 Not Found
. In the logs it shows that there was a transition of this kind https://site.ru/data.php/?getooo/index.php
. If you put it like this, https://site.ru/data.php?getooo
i.e. without the last / (slash), the transition proceeds normally. Of course, you can remake the entire site and remove these slashes, but this is somehow not right. I suspect that it can be configured in the nginx config?
Answer the question
In order to leave comments, you need to log in
lamer350 is absolutely right, slashes ( /
) and other reserved characters should not occur in URL query parameters :/?#[]@!$&'()*+,;=
. They should be shielded.
If you want to use a slash as part of a parameter, you should replace it with %2F
.
Read more here: https://tools.ietf.org/html/rfc3986#section-1.1.1
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question