Answer the question
In order to leave comments, you need to log in
How to redirect GET requests with saving parameters?
Hello, I need help in solving a problem that has arisen, how to use nginx to redirect GET requests to another domain, for example, there is a request:
https://site1.ru/page?a=1&b=2
https://site2.ru/page?a=1&b=2
Answer the question
In order to leave comments, you need to log in
Response:
server {
listen IP:80;
server_name requested_domain.tld;
rewrite ^ http://target_domain.tld$request_uri;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question