E
E
exxagw2016-06-22 16:47:52
Nginx
exxagw, 2016-06-22 16:47:52

How to redirect to nginx?

There are links site.ru/test/old/item /test/old redirect to /news

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2016-06-22
@sim3x

location /test/old {
return 301 /news;
}

nginx.org/en/docs/http/ngx_http_rewrite_module.htm...
return (301 | 302 | 303 | 307) url;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question