N
N
noname902016-01-23 11:22:19
Nginx
noname90, 2016-01-23 11:22:19

How to make nginx 301 redirect?

I write in the config:
rewrite /book/ / permanent;
but the redirect occurs not only from this address, but also from "/book/any address", how to prevent this from happening?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2016-01-23
@noname90

nginx.org/en/docs/http/ngx_http_rewrite_module.htm...
location = /book { return 301 /; }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question