W
W
WiNNeR_tig2018-07-14 16:16:24
Nginx
WiNNeR_tig, 2018-07-14 16:16:24

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/?getooolike 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?getoooi.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

1 answer(s)
S
Stalker_RED, 2018-07-15
@Stalker_RED

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 question

Ask a Question

731 491 924 answers to any question