Answer the question
In order to leave comments, you need to log in
How to catch a WordPress search query on nginx and route it via location?
The essence of the question is as follows - nginx is configured with the following routing:
location = / {
proxy_pass http://localhost:9000;
...
}
location / {
try_files $uri $uri/ /index.php?$args ;
}
Answer the question
In order to leave comments, you need to log in
location = / {
if ($arg_s) {
rewrite ^ /index.php last;
}
proxy_pass http://localhost:9000;
...
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question