Answer the question
In order to leave comments, you need to log in
How to properly process a request in nginx?
Good afternoon, connoisseurs!
I know how it is done in Apache, I rummaged through everything in nginx ...
it is necessary that when accessing the site example.com/3t5fxs , in fact, nginx considers that this is example.com/index.php?id=3t5fxs
At the same time, the user would not have a url changed
Answer the question
In order to leave comments, you need to log in
For those who are interested, I solved it like this:
location / {
try_files $uri $uri/ /index.php?id=$uri;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question