Answer the question
In order to leave comments, you need to log in
nginx redirect. How to remove redundant url 404 errors?
Made the site example.com redirect to example.com/my/test/direct?$args instead of 404.
It works and passes the parameter (important), for example, if you go to example.com/my-my?blabla will redirect to example.com /my/test/direct?blabla
error_page 400 402 403 404 500 502 503 504 @err;
location @err {
return 301 /my/test/direct?$args;
}
example.org/my-my?code007
redirects to example.com/my/test/direct?blabla:Proxy&clickid:404;http://example.org:80/my-my?code007
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