Answer the question
In order to leave comments, you need to log in
Is it possible to make such a redirect to nginx?
Good afternoon!
There is a PHP code that works at the address:
domen.ru/index.php?id=131
I need that when the client contacts the address:
domen.ru/api/parametr1/parametr2
so that in fact all requests go to that code. That is, if the word api comes after the domain, then all requests should already go here:
domen.ru/index.php?id=131
And after api there can be several parameters, all parameters will be indicated through a slash. Is it possible to implement something like this?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question